SOH CAH TOA
Basically, Sin. = opposite/hypotenuse
Cos. = adjacent/ hypotenuse
Tan. = opposite/ adjacent
*adjacent = side next to angle __, hypotenuse = side opposite the right angle aka longest side.
tan. p = opposite/adjacent.
RQ is opposite of angle p, so 35 would be the opposite. PR is adjacent to angle P, so 12 would be the adjacent. Notice how PQ is also adjacent is angle P, but it CANNOT be THE adjacent in the ratio because it is THE hypotenuse.
tan. q = opposite/adjacent
PR is opposite to angle p, so 12 would be the opposite. RQ is adjacent to angle p, so 35 would be the adjacent.
Final answer: tan. p = 35/12, tan. q = 12/35
*fun fact - these ratios are reciprocals