How does UC count ESL units when transfer?

I took two ESL classes that are transferable, which are ESL54 and Esl55. 5 unit for each, but UC said they only accept 8 ESL units. Should I write my two ESL classes 4 unit each? Or 5 unit? If I write 5 unit, I am afraid they just calculated it automatically

Put in the actual units for the courses. The UC will recalculate on the back end.

I heard UC use UC planner to calculate the GPA automatically.

Yes and no. It sometimes isn’t accurate if there are duplications it doesn’t recognize, or other variables. It gets sorted out later.