You can get the acc from the kinematics 2ad = vf2 - vi2 or a = vf2/(2d) (all givens)
Adding the force balances for the two weights and the torque balance for the pulley in order to remove tensions from the equation:
m1g - T1 = mia
T2-m2g = m2
(T1 - T2)RP = IPα = IP a/RP no slip condition and leading to T1-T2 = IPa/RP2 add them up:
m1g - m2g = (m1 + m2 + IP/RP2)a (Knowing a, you can solve for IP)
The other way is to realize that the loss of potential energy is = to the net gain in kinetic energy
The EK of the pulley is 1/2 Iω2 or 1/2 I (v2/RP2)
The overall energy balance is
m1gd-m2gd = v2/2 (m1+m2+ IP/RP2) and solve for IP
Hope that helps. Take care.