Explanation:
It's a question of trigonometry.
You need to remember that tangent (tan) stands for Perpendicular / Base.
So, tan P = QR / PR
By Pythagoras Theorem,
34² = 30² + x²
x² = 34² - 30²
x² = 1156 - 900
x² = 256
x = 16
Now, placing the values,
tan P = 30 / 16
tan P = 1.875
HOPE IT HELPS ^_^