First let's try to find the equation in this form : <span>y = mx + c
The gradient is given 3 . In a line's equation, x's coefficient represents the line's gradient.
So equation of a line with the gradient of 3, would look like this ;
</span>

<span>
Now a point that the line passes through is given, (1, 2)
This point's x-coordinate is 1 and y-coordinate is 2.
So we'll plug its x-coordinate value in the equation and also y-coordinate value. So we can solve it.
As you know, </span>

and



We found c = -1
Also in a line's equation, c is constant and it represents the line's y-intercept
So let's build the line's equation.

and



We found the line's equation in this form,

Now let's turn it into this form,


Final answers,

and

I hope this was clear enough :)
<span>
</span>