Lines p and q are perpendicular. If the slope of line p is 2, what is the slope of line q?

A. 1/2
B. -1/2
C. -2
D. 2