The density function of the liquid is given in the question as
By the hint, the mass of the solid is
We consider slices of the solid made at heights above the x-axis, where each slice has thickness and cross-sectional area
In the case of our solid, the cross-sections at height are circles with radii , so that
Therefore (for ).
Returning to the mass formula, this implies that
Hence the mass of the liquid inside the solid is