First, we need to know the equation of the line

m is the slope
b is the value of y-intercept
in the first equation

we need to clear y in order to have the same form of the equation of the line

m=2
b=3
in the second equation, we do exactly the same

m=1/4
b=3