Gradient = \[\frac{y_{2} - y_{1}}{x_{2} - x_{1}}\]

= \[\frac{q + 4 - q}{p + 2 - p}\]

= \[\frac{4}{2} = 2\]