
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
Professor Lee has seven different language books lined up on a bookshelf: three Arabic, two German, and two Spanish. How many ways are there to arrange the seven books on the shelf keeping the Arabic books together, and either the German or the Spanish books must also stay together?
**A)** 144  
**B)** 288  
**C)** 432  
**D)** 576  
**E)** 1152

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