Equation of line is y=mx+b, where m is the slope of the line.
For y=-2x+5, m = -2, so the slope of that line is -2.
The slope of any line parallel to that line will have the same slope, so the slope of the line whose equation we are trying to find is also -2.
So far for our other line, we have y=-2x + b. We need to determine b, We can do that because we are given a point (2,7) that the line passes through. We substitute 2 for x and 7 for y in the above equation and solve for b:
7 = -2(2) + b
7 = -4 + b
11 = b
So the equation of the line is y = -2x + 11