The total cost c painter charges to paint a house depends on the number h of hours it takes to paint the house

The relationship between the total cost and the number of hours can be represented by the equation:

c = ph

where:
c = total cost
p = hourly rate of the painter

Since the total cost is dependent on the number of hours, the cost will increase as the number of hours increases. The hourly rate p represents how much the painter charges for each hour of work.