A solid has cross sections perpendicular to the x-axis defined as follows:
• For 0≤x≤2, each cross section is a square whose side length is s(x)=x+1.
• For 2<x≤4, each cross section is a rectangle whose height is 3 and whose base is b(x)=x.
What is the exact volume of the solid, in cubic units?
a) 28
b) 380
c) 22
d) 398