
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
John wants to buy two large pizzas, one medium pizza, and four drinks. The drinks cost $p$ dollars each, the medium pizza costs three times as much as one drink, and each large pizza costs four times as much as one drink. If John started with $50$ dollars, how much money would he have left after making all his purchases? Present your answer as an expression of $p$.

Present the answer in LaTex format: \boxed{Your answer}
user