In the diagram, SQ is a tangent to the circle at P, XP||YQ, ∠XPY =…