Before Carl started his road trip last week, he filled his truck’s 32-gallon gas tank full. During his road trip, he stopped at a gas station and added another 8 gallons of gas. When he finished his trip, his truck’s gas tank was exactly half full. How many gallons of gas did Carl use during his trip?