if asintheta = p - bcostheta and bsin theta= q +acos theta show that a^2 + b^2 = p^2 + q^2 thank you