### Instruction: Mason, Noah and Jacob want to have an eating contest but can't agree on what food to eat. Mason wants hot dogs, Noah insists on burgers, and Jacob thinks they should eat pies. They finally agree that everyone can eat whatever they want and they'll use the weight of the food to determine who wins. A hot dog weighs 2 ounces, a burger weighs 5 ounces, and a pie weighs 10 ounces. Jacob eats three fewer pies than Noah eats burgers. Mason eats 3 times as many hotdogs as the number of pies consumed by Jacob. If Noah ate 8 burgers, what is the total weight of the hotdogs that Mason ate? Let's write a Python program.### Response: # define the weights of each food item
hot_dog_weight = 2
burger_weight = 5
pie_weight = 10

# define the number of each food item eaten
noah_burgers = 8
jacob_pies = noah_burgers - 3
mason_hotdogs = jacob_pies * 3

# calculate the total weight of the hotdogs that Mason ate
mason_hotdogs_weight = mason_hotdogs * hot_dog_weight

print(mason_hotdogs_weight)