To be able to solve this problem we must know that the force is a vector and has magnitude and direction, therefore it can be decomposed into the force in the X & y components:
When we have the components on the horizontal and vertical axes we must use the Pythagorean theorem.