The general line equation in slope-intercept form is

where m is the slope and b is the y-intercept.
- Now, two lines are parallel if they have the same slope
- Two lines are perpendicular if

where M is the slope of the other line.
In our case, we must see how the slopes are related. In the first case, we have

in the second case, we have

since the slope is the coefficient of the variable x, we can note that both lines have slope equal 1. This means that the lines are parellel.