In lecture 22 of AC in question number 4 why we have not used the formula for power as power=V (rms)×I (rms)×cos (phi )

In the example solved by Ankur sir

how did he find that 3 is the adjacent side to the angle

whereas 4 is the opposite side to the angle.