Your answer is y = -3x + 1
To find the equation of the line we need both the slope and where it intercepts the y-axis. We are given where it intercepts the y-axis because they tell us it goes through the point (0, 1) and this is a point where x = 0, so it must be on the y-axis.
The equation for finding the slope of a line given two points is
where
and
are points on the line. Using this, we can substitute in the points we're given and get:
(-5 - 1)/(2 - 0) = -6/2 = -3
Therefore our slope is -3 and our intercept is 1, so the final answer is y = -3x + 1
I hope this helps!