Function to calculate total price of final treasure list