Explanation:
If it's a straight line the use formula
![y = mx + c](https://img.qammunity.org/2022/formulas/mathematics/high-school/mpsydhdqmt6eheycm3xmw9eeme8fwkngx1.png)
m= gradient of line
c = y-intercept
we know that y-intercept is 4 so coordinate is
(0,4)
Equation also passes (2,10)
Use both coordinate to find gradient
m= vertical distance / horizontal distance
= (10-4) / (2-0)
= 3
y = 3x + 4