Answer
See image:
.
Work Step by Step
We treat p as an independent variable (on the horizontal, "x-axis") and q as the dependent variable (on the vertical, "y- axis").
Using your graphing device, enter the formula
$y=30\times x\wedge(-0.49)$
(The attached image is a screenshot of the work done in desmos.com.)