OK. So, let us go at it step by step. Call the two masses hanging from the ends of the string as m1 and m2. Concentrate on one mass, say m1.
1. There are two forces on m1. The weight, downwards, and the tension in the string, upwards. Agreed?
2. Since the string is pulling m1 up with the tension T, m1 is pulling down on the string with the same force T. Agreed?
3. The tension in the string is the same throughout. (This assumes that the string is massless, and it does not stretch). So the string is pulling up on m2 on the other side, with the same force T. Agreed?
4. So m2 is also pulling down on the string with the force T. Agreed?
5. So there are two forces on the string, each equal to T, and pointing downwards. Agreed?
Let me know if these steps are clear, and if you can continue on your own from here