Bobby, Bryan and Oliver shared the cost of a gift. The ratio of Bobby's share to the total share of Bryan and Oliver was 1 : 3. The ratio of Bryan's share to the total share of Bobby and Oliver was 1 : 7. Oliver's share was $39 more than Bobby's share. How much did the gift cost?