It is based on concept of tension in string which is mass less. Then the tension T has the same magnitude at all points throughout the string. The magnitude of acceleration of any number of mass connected through the string is always same.
Torque about hinge will be zero. So,
WL=3TL5
⇒W=3T5
T=5W3=1000 N3
Also, FV+3T5=mg⇒FV=0
FH=4T5=800 N3