A uniform solid cylinder of mass $M$ and radius $R$ is free to rotate on frictionless horizontal axle. Two masses m hang from the two cords wrapped around the cylinder. If the system is released from rest then the tension in each cord will be
I want to solve this using the work energy theorem, so I used $$2mgh=mv^2+\frac{1}{2}I\omega^2$$ but what values should I put in for $v$ and $\omega$ in order to get tension?