
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
Mary wants to buy one large pizza, one medium pizza, and four drinks. The drinks cost $p$ dollars each, the medium pizza costs twice as much as one drink, and the large pizza costs four times as much as one drink. She originally had $50$ dollars. How much money will Mary have left after all her purchases? Express your answer in terms of $p$.

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