the picture is pending approval, however, I might be able to give some help.
On a pully, the tension is equal to:
Tension=mg-ma
The m is the mass of the block only.
The a is the acceleration, which is NET FORCE/TOTAL MASS. If you have two masses pulling in two different directions, get the NET force of the system by F=(m2-m1)a. Then, get total mass by adding the masses. For the acceleration, a=net force/total mass.
Now, for the tension, isolate the system to just the rope and block. T=the weight of the block minus acceleration of the system times the mass of the block. T=mg-ma