Carlos, Tyjuan and Sarah all went to the same gas station to fill their tanks with regular grade gas. Carlos filled up his gas tank with 8 gallons of gas and spent $18.40. Tyjuan filled up his tank, spending $24.15. Sarah bought 12 gallons of gas. What is the cost per gallon for gas?