If there is a value of x for which and then . Solve that equation for x, then plug that value of x into one of the quadratic equations and simplify the result. That will give you the solution to 1. For 2., all you have to do it is to put the values p=2, q=a, P=b, Q=3 into the result from 1.