
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, two medium pizzas, and five drinks. Each drink costs \( p \) dollars, the medium pizza costs twice as much as one drink, and the large pizza costs three times as much as one drink. Mary starts with \( 50 \) dollars. How much money does she have left after her purchases? Provide your answer as an expression in terms of \( p \).

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