Rewrite the following in terms of p and q, where and :
=