I assume that the rod is in equilibrium?
First calculate all of the anticlockwise moments (i.e. the weights to the left of the pivot)
Here we have 3N which is 45cm from the pivot and 2N which is 25cm from the pivot.
The total anticlockwise moment is the sum of the two products.
Then the clockwise moments are WN 30cm from the pivot.
Now because the rod is in equilibrium the sum of all of the moments is zero. In other words, total anticlockwise moment = total clockwise moment. Using that you can rearrange for W.
If you haven't got this in mind already, ALWAYS draw a diagram for mechanics questions.