Step-by-step explanation:
(1) Formally....
The two data points are (4,180) and (6,280).
The slope is (y2-y1)/(x2-x1) = (280-180)/(6-4) = 100/2 = 50; so the equation is y = 50x+b.
Use either data point (I chose the first) to determine the value of b:
180+=+50%284%29%2Bb
180+=+200%2Bb
b+=+-20
The equation is y = 50x-20.
Informally....
(You should understand that the algebraic solution is just a formalization of common sense.)
The additional 2 hours brought in an additional $100; the rate is $50 per hour.
After 4 hours, the actual dollar amount was $180. $50 per hour for 4 hours would be $200; so the dollar amount is $20 less than $50 per hour.
$20 less than $50 per hour in algebraic notation is
50x-20