two rotating bodies a and b of moment of inertia