Cole, Gabriel and Ryan shared the cost of a souvenir. The ratio of Cole's share to the total share of Gabriel and Ryan was 1 : 2. The ratio of Gabriel's share to the total share of Cole and Ryan was 1 : 3. Gabriel's share was $4 less than Ryan's share. How much did the souvenir cost?