Consider a block and trolley system as shown in figure. If the coefficient of kinetic friction between the trolley and the surface is , the acceleration of the system in m s is: (Consider that the string is massless and unstretchable and the pulley is also massless and frictionless):

Lets write equations for both the blocks
First for the 6 Kg block
Now for the 20 Kg block
now our frictional force is
f_l=\mu\ _kmg\
Now equation for the 20 Kg block is
Now ad both equations
Tagged Connected bodies, pulleys and constraint relations. Machine-assigned, so read it as a strong shortlist rather than a verdict.