
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
In the arithmetic sequence $\{ a_{n} \}$, the first term $a_{1}=22$, and $S_{n}$ denotes the sum of its first $n$ terms. Given that $S_{4}=S_{8}$,

(1) Find the general term formula of the sequence;

(2) Determine how many terms at the beginning of the sequence yield the maximum sum, and calculate this maximum sum.

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