
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
Petrov and Vasechkin were repairing a fence. Each had to nail a certain number of boards (the same number). Petrov hammered either two nails into some boards or three nails into the remaining boards. Vasechkin hammered either three nails into some boards or five nails into the remaining boards. Find out how many boards each of them nailed, given that Petrov hammered in 87 nails and Vasechkin hammered in 94 nails.

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