Class 6, Day 2

For this solution Q=I²X was used. I do not understand why tan(theta)=Q/P does not work in this situation?