In the slope-intercept form of a linear equation,
y = m x + b
m is the slope and b is the y-intercept.
The point-slope form looks like this:
y - y1 = m ( x - x1 )
where ( x1 , y1 ) is a given point and m is the slope.
We were given the slope from the other equation, so we know it is -5. The point given is ( -7 , -5 ). Let's just plug these values into the point-slope generic equation:
y - ( -5 ) = ( -5 ) * ( x - ( - 7 ) )
Simplifying:
y + 5 = -5 ( x + 7 ) *
Using the distributive law:
y + 5 = -5x -35
Subtracting 5 from both sides:
y = -5x -40 *
If you graph both starred (*) equations using the Desmos online graphing calculator, you will see they define exactly the same line.
Note: the slope-intercept form is just a simplified version of the point-slope equation using the y-intercept point ( 0 , b ), or ( 0 , 1 ) in this case at the top of the page, and ( 0 , -40 ) as the other equation.
I presume the problem should have stated "find a line parallel to y = -5x + 1 which goes through the point
( -7 , -5 )." Parallel lines have the same slope.