I have the question:

"Wire Q is attached to a Newton meter so that the force the wire exerts on the rod can be measured. The reading on the Newton meter is 2.0 N and the weight of the rod is 5.0N.
Calculate:
(i) The force that wire P exerts on the rod.
(ii) The distance d."
For the first part (i) I got 5.0N - 2.0N = 3.0N for wire P.
However, for the second part I am not sure how to find the distance d.
I know that I must multiply the vertical by the horizontal but I am not sure how to do this.