Three blocks , and are pulled on a horizontal smooth surface by a force of 80 N as shown in figure. The tensions and in the string are respectively:

Let us write equations for all three blocks A,B and C
For A:-
For B:-
and For C:-
Now on adding all 3 equations
We get
now substitute value of a in equation 1
Substitute the value of a in equation 3