The acceleration of the 2 kg block if the free end of string is pulled with a force of 20 N as shown is
Upward force on 2 kg block in upward direction will be 40 N (=2F) in the form of tension.
a=40−202=10m/s2