Xavier, Elijah and Sam shared the cost of a present. The ratio of Xavier's share to the total share of Elijah and Sam was 1 : 4. The ratio of Elijah's share to the total share of Xavier and Sam was 1 : 6. Sam's share was $48 more than Xavier's share. How much did the present cost?