The snake habitat at the nature center is made by connecting two terrariums. The first terrarium is 40\text { cm}40 cm long, 25\text { cm}25 cm wide, and 20\text { cm}20 cm high. The second terrarium is 25\text { cm}25 cm long, 30\text { cm}30 cm wide, and 20\text { cm}20 cm high. How many cubic centimeters of space do the snakes have in their habitat?