The rotational kinetic energy is given by (0.5)(I)(ω2) where I is the moment of inertia and ω is the rotational velocity in radians per second.
For the first object I = m(L2) Therefore K1 =(0.5)mL2ω2
The second ball has a mass of 2m and L2=2L and ω2=2ω Therefore I = (0.5)(2m)(2L)2 which gives us
K2 = (0.5)2m(2L)2(2ω)2 = (16)mL2ω2
Therefore the ratio of the energies is 16/0.5 which means the second ball has 32 times more energy than the first ball