The figure can be decomposed into two rectangular prisms. The bottom prism has dimensions 2x2x2, so its volume is 2 * 2 * 2 = 8. The top prism has dimensions 1x1x2, so its volume is 1 * 1 * 2 = 2. The total volume is the sum of the volumes of the two prisms: 8 + 2 = 10.