Two masses, m1 and m2 are hanging from a support as shown in figure.
The tension in string BC T1=( total mass hanging on string) g=m2g Similarly, the tension in string OA T2=( total mass hanging on string OA)g T2=(m1+m2)g Hence, the tension in the upper, string is T=(m1+m2)g