Pulley dynamics problem 2

Question

Hints

Answer