Wesley, Tim and Ivan shared the cost of a gift. The ratio of Wesley's share to the total share of Tim and Ivan was 1 : 2. The ratio of Tim's share to the total share of Wesley and Ivan was 1 : 6. Tim's share was $120 less than Ivan's share. How much did the gift cost?