
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 plans to purchase two large pizzas, three medium pizzas, and four soft drinks. The drinks cost \( p \) dollars each, each medium pizza costs three times as much as one drink, and each large pizza costs five times as much as one drink. Mary initially has \( 50 \) dollars. How much money does she have left after her purchases? Express your answer in terms of \( p \).

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