The correct option is A y = 9x - 6
The cordinates of the house and temple are (2,12) and (4,30) respectively.
Slope m = ΔyΔx
=30 − 124 − 2
=182
= 9
Equation of the line is, y = mx + c
⟹ y = 9x + c
Substitute the coordinates, say (2, 12) in the above equation
we get,
12 = 9(2) + c
⟹12 = 18 + c
⟹c = 12 - 18
⟹c = -6
Hence, the required equation is y = 9x - 6.