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