Fred, Ken and Tommy shared the cost of a present. The ratio of Fred's share to the total share of Ken and Tommy was 1 : 4. The ratio of Ken's share to the total share of Fred and Tommy was 1 : 7. Tommy's share was $76 more than Fred's share. How much did the present cost?