Answer:

Energy comes from the work the professor does to move the dumbbells towards him.
Step-by-step explanation:
To find the angular velocity of the professor we are going to use the conservation of angular momentum, this is
.
At the begining we have that:
.
We can easily find
because we know the oscilation period (T). So:
,
,
.
The moment of inertia at the beginning is the sum of his moment of inertia and the moment of inertia of dumbbells(consider the dumbbells as particles so their moment of inertia is
, where m is the mass and r is the distance from the dumbbell to the axis), so:


.
The moment of inertia at the final position is meant to be computed the same way (using the values of the ending position) :


.
Now we recall the conservation of angular momentum to compute his final angular velocity:




.
If we look at the rotational kinetic energy (
) we realized that the energy at the start (64.15 J) is less than the one at the end (320.76 J). This is due to the work the professor did to move the dumbbells toward him.