Oliver, Wesley and Cody shared the cost of a present. The ratio of Oliver's share to the total share of Wesley and Cody was 1 : 3. The ratio of Wesley's share to the total share of Oliver and Cody was 1 : 7. Cody's share was $24 more than Oliver's share. How much did the present cost?