This question was asked in Example 18
QT is perpendicular to PR, angle TQR=40 and SPR=30,then find the values of X and Y

saqlain md's image