Walter is a waiter at the Towne Diner. He earns a daily wage of $50 plus tips that are equal to 15% of the total cost of the dinner he serves. What was the total cost of the dinners he served on Tuesday if he earned $170?