You need to start by considering what forces are on the 20kg block. The 20kg block will have a tension force as well as a gravitational force that are antiparallel to each other. There is also a normal force, but we will not need to consider this since friction is negligible. The equation will be:

, where

. From this equation, you can find the expression for acceleration (

) by dividing by the mass.