A store sells 3 types of bags priced at $12, $18, and $24.A customer buys 2 of each type.What is the total cost?