Ian, Andy and Tommy shared the cost of a souvenir. The ratio of Ian's share to the total share of Andy and Tommy was 1 : 2. The ratio of Andy's share to the total share of Ian and Tommy was 1 : 4. Tommy's share was $12 more than Ian's share. How much did the souvenir cost?