Hello Audrey,
The customer left $50 for a meal that cost $34. That means the amount left for the tip was 50 - 34 = 16.
You want to calculate the tip percentage not based on the amount the customer left BUT based on the cost of the meal.
Tip percentage = (16/34)*100 = 47.06%