Solve the below problem:
Q: A window pole is used to open a window as shown. Knowing that the pole exerts on the window a force P directed along the pole and that the magnitude of the horizontal component of P is 18 N, determine
(a) The magnitude of the force P,
(b) Its vertical component.