if you have TPR, they explain this really well in the 2 accelerating bodies section. Basically though, an easy way to do pulley problems like this (or problems like when you have a block on a flat surface tied by a rope to a small pull that is attached to a Larger block that is free falling) is to mentally set up to free body diagrams, determine the direction of the system, and cancel out the tensions.
Ex. Take the case of an atwood machine with two blocks attached, a smaller block on the left designated m and a larger block on the right designated M. What is the acceleration of the system.
m= 5 kg
M= 10 kg
In order to solve for a, set up TWO free body diagrams, one for each mass. Then, DESIGNATE A DIRECTION depending on the motion of the box. In this case, the 10 kg box is heavier so it will move down, and the 5 kg box is lighter so it will move up. ***
**it is easiest to assign the direction of the motion of the object as POSITIVE. SO....
FBD for M should show the large box on the right, with gravity acting on it to pull it down (designated as positive direction). Since tension in the rope is in the opposite direction, that is designated as the negative direction (so we have NEGATIVE tension for the FBD of M)
Ma = W - T where W=Mg
FBD for m should show the small box on the left. Now, since the larger mass on the right is moving downward, the smaller box on the right must naturally move upward. Since this box's motion is upward, we will designate the positive as the upward direction. Thus, the tension becomes positive. Now, since the only other force on the small box is it's weight, which OPPOSES the direction of the motion of the box (thus well assign it negative) we need to put that in our equation.
ma = T- w where w=mg
Now, if you go back and read carefully, in the FBD for M, tension was designated as NEGATIVE (since it was in the opposite the direction of the motion of the larger box) and in the FBD for m, tension was designated as POSITIVE, since it was in the same direction as the motion of the smaller box). THUS, TENSIONS CANCEL. THIS IS IMPERATIVE.
Now, with the tensions canceling, we can look at the two FBD's and add them together. Remember the direction of the system and the directions that we assigned. Well get
Ma + ma = W - w
a (M+m) = W- w
a= (W-w)/(M+m)
a= (100N - 50N)/(10kg+5kg) = 3.33 m/s^2
you can take the acceleration and plug it back into either one of the equations and find the tension in the rope. Also remember that tension is constant throughout the rope! If your having trouble, go back and draw the problem and go through each step that I explained. I know it sounds confusing but I tried my best to explain. If you have the TPR book it is explained at the end of the first mechanics section I believe.