If sinθ + cosθ = p and secθ + cosecθ = q