A chemical company makes two brands of antifreeze. The first brand is 55% pure antifreeze, and the second brand is 80% pure antifreeze. In order to obtain 180 gallons of a mixture that contains 65% pure antifreeze, how many gallons of each brand of antifreeze must be used?