Pulley dynamics problem 1

Question

Hints

Answer