The form of the linear equation is

m is the rate of change
b is the initial amount
Since The painter charges $20 every hour, then
The rate is 20
m = 20
Since there is no initial amount of payment, then
b = 0
Since the number of hours is h, then
x = h
Since the earning is e, then
y = e
The equation is

Then the first equation is A
Divide both sides by h

The 2nd equation is E