
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
You have $5$ red shirts, $7$ green shirts, $8$ pairs of blue pants, $6$ pairs of green pants, $8$ green hats, and $8$ red hats, all of which are distinct. How many outfits can you make consisting of one shirt, one pair of pants, and one hat where:
1. The shirt and hat colors do not match, and
2. The pants color must match the color of the hat?

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