Use the image to answer the question.

An illustration shows two cubes joined on both sides of a cuboid. The sides of the cube are 2 yards. The length of the cuboid is 4.5 yards.

What is the volume of the composite figure?

To find the volume of the composite figure, we first need to find the volume of the cubes and the cuboid separately, and then add them together.

Volume of cube = side length^3
Volume of cube = 2 yards x 2 yards x 2 yards
Volume of cube = 8 cubic yards

Volume of the two cubes = 2 x 8 = 16 cubic yards

Volume of cuboid = length x width x height
Volume of cuboid = 4.5 yards x 2 yards x 2 yards
Volume of cuboid = 18 cubic yards

Total volume of the composite figure = volume of cubes + volume of cuboid
Total volume = 16 + 18
Total volume = 34 cubic yards

Therefore, the volume of the composite figure is 34 cubic yards.