Atwood's Machine

Atwood's machine is a device where two masses, M and m, are connected by a string passing over a pulley. Assume that M > m.

What is the acceleration of the two masses?

Start with a good free-body diagram. Two, in fact, one for each mass.