The equation for total charge to his customer for 2 hours is,

For 4 hours,

Simplify the equation to obtain the value of h.

Substitute 12 for h in the equation 2h + f =39 to obtain the value of f.

So equation to determine his customers total charge is,
