Q.
Two masses of and are connected to a pulley as shown. What will be the acceleration of the system? ( = acceleration due to gravity)

Solution:
According to Newton's law,
Adding, (i) and (ii)
