Consider the line y=-x+2

What is the slope of a line perpendicular to this line?
What is the slope of a line parallel to this line?

The given line has a slope of -1 since it is in the form y = mx + b where m is the slope.

The slope of a line perpendicular to this line will be the negative reciprocal of the slope of the given line. So the slope of a line perpendicular to y=-x+2 will be 1 (the negative reciprocal of -1).

The slope of a line parallel to this line will be the same as the slope of the given line. So the slope of a line parallel to y=-x+2 will be -1.