solving the volume of solid