The volume of the figure can be calculated by adding the volumes of the two rectangular prisms. The first rectangular prism has dimensions 12 in x 10 in x 2 in, so its volume is 12102 = 240 in^3. The second rectangular prism has dimensions 10 in x 7 in x 21 in, so its volume is 10721 = 1540 in^3. The total volume of the figure is 240 in^3 + 1540 in^3 = 1780 in^3.