Luis, Riordan and Tommy shared the cost of a gift. The ratio of Luis's share to the total share of Riordan and Tommy was 1 : 5. The ratio of Riordan's share to the total share of Luis and Tommy was 1 : 6. Tommy's share was $286 more than Luis's share. How much did the gift cost?