For this case we define the following variables:
- mp: slope of the line p
- mq: slope of the line q
By definition, since the lines are perpendicular, it follows that:

Substituting values we have:

From here, we clear the value of the slope of the line q:

Answer:
The slope of line is:
