Solving for volume and area