George, Michael and Justin shared the cost of a gift. The ratio of George's share to the total share of Michael and Justin was 1 : 3. The ratio of Michael's share to the total share of George and Justin was 1 : 5. Michael's share was $30 less than Justin's share. How much did the gift cost?