Consider the figure above,
From Pythagoras theorem,
PR2=PQ2+RQ2
PR2=42+32
PR2=16+9=25
PR=5
We know that,
cosθ=adjacentSideHypotenuse
cosP=QPRP=45
secP=1cosP=RPQP=54
cosR=QRRP=35
secR=1cosP=RPQR=53
We know that,
sinθ=oppositeSideHypotenuse
sinP=QRRP=35
sinR=PQRP=45