Part 1: Volume of rectangular prism = length x width x height
Volume = 45cm x 17cm x 20cm = 15,300 cm^3
Part 2: Volume of triangular prism = (1/2) x base x height x length
Volume = (1/2) x 20cm x 18cm x 17cm = 6,120 cm^3
Part 3: Volume of the composite figure = 15,300 cm^3 + 6,120 cm^3 = 21,420 cm^3
Therefore, the volume of the rectangular prism is 15,300 cm^3, the volume of the triangular prism is 6,120 cm^3, and the sum of the volumes of the two prisms is 21,420 cm^3.