then find the values of P and Q.