use the point slope form:

the equation of the line passing through with slope is given by

expand and solve for y and you have your equation.

same thing here. except you have to find your m first since it wasn't explicitly givenPasses through the points (2,-5) and (-1,1)

where and are two points the straight line passes through

once you have m, you can use any one of the points given in the point-slope form to find the equation of the line