
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
Let the universal set $U$ be the set of positive integers not exceeding 5, $A = \{x | x^2 - 5x + q = 0\}$, and $B = \{x | x^2 + px + 12 = 0\}$. Given that $(C_U A) \cup B = \{1, 3, 4, 5\}$, find the values of $p$ and $q$, and the sets $A$ and $B$.

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