For two lines to be perpendicular, their slopes are defined to be negative reciprocals of each other; that is [tex]m_1 \cdot m_2 = -1[/tex]
Let [tex]m_1 = \frac{1}{5}[/tex]
[tex]\frac{1}{5} \cdot m_2 = -1[/tex]
[tex]m_2 = -\frac{1}{\frac{1}{5}}[/tex]
[tex]m_2= -5[/tex]
Thus, the slope of line q must be -5.