solve x= p*q and y=p/q for p,q