Start from

and cross multiply the denominators (i.e. multiply both sides by

The result is

Expand the left hand side:

Bring all terms involving p to the left, and all terms involving q to the right:

Divide both sides by 21q:

Now we have a ratio between multiples of p and q. It's not exactly the one we want, though. Nevertheless, we can keep multiplying both sides by approriate constants in order to get the ratio we want:
Divide both sides by 5:

Multiply both sides by 3:
