Two blocks of mass m=5kg and M=10kg are connected by a string passing over a pulley B as shown. Another string connects the centre of pulley B to the floor and passes over another pulley A as shown.
An upward force F is applied at the centre of pulley A. Both the pulleys are massless. The accelerations of blocks m and M, if F is 300N are

my doubt is that won't the acceleration of M also affect m's acceleration?
As g is constantly applied