We will do it using a little bit of hand-waving but it makes it easier. Break up this solid into many many pieces (cross-sections). Pick a cross section at a point . The width of this cross section is . While the base length is . We are told that the cross sections are squares which means that the volume of each cross section is . Now integrate that from .