A truck dropped off milk at two stores. It used 16 gallons of gas to drive to the first store and 6 gallons to drive to the second. How many gallons of gas did the truck use?