By definition the moment of inertia is described under the function
![I= mL^2](https://img.qammunity.org/2020/formulas/physics/college/mptvr6f74g9eocttistdflb7uch53okhv4.png)
Where,
m = Mass
L = Distance to the center of mass
The moment of inertia is proportional to both bodies and as we can see, there is no change in mass, so
![I \propto L^2](https://img.qammunity.org/2020/formulas/physics/college/9cc6aeupo6veaqau8uwr5ngj7avlkoklwq.png)
If the distance of the body is greater than the center of mass or the axis of rotation, its moment of inertia will be greater. In this case, the solid sphere has a greater mass than the hollow sphere. In addition, its axis of rotation is further away from its center of mass. Therefore by proportionality your moment of inertia will be greater.