[guided]The point of this step is to make the two definitions use one shared block of quantified variables. We begin with two formulas of the same arithmetical type:
\begin{align*}
x \in A
&\iff
Q_1 u_1\, Q_2 u_2 \cdots Q_n u_n\,
R(x,u_1,\dots,u_n),\\
x \in B
&\iff
Q_1 v_1\, Q_2 v_2 \cdots Q_n v_n\,
S(x,v_1,\dots,v_n).
\end{align*}
The quantifier symbols $Q_1,\dots,Q_n$ are identical in the two formulas because both sets belong to the same pointclass $\Gamma$, either $\Sigma^0_n$ or $\Pi^0_n$. The normal form used here has one natural-number variable at each alternation level; any finite block of variables at one level is first coded by a computable tuple coding, so no quantifier complexity is lost.
We now combine the two variables at each quantifier level into one coded variable. Fix a computable pairing map
\begin{align*}
\langle \cdot,\cdot\rangle: \mathbb{N}\times \mathbb{N}\to \mathbb{N}
\end{align*}
with computable projections $(\cdot)_0$ and $(\cdot)_1$, so that $(\langle a,b\rangle)_0=a$ and $(\langle a,b\rangle)_1=b$. Thus a single number $w_j$ can store the pair $(u_j,v_j)$, with $(w_j)_0$ recovering the $u_j$ coordinate and $(w_j)_1$ recovering the $v_j$ coordinate.
Using these projections, define
\begin{align*}
T_\cup(x,w_1,\dots,w_n)
&\iff
R(x,(w_1)_0,\dots,(w_n)_0)
\lor
S(x,(w_1)_1,\dots,(w_n)_1),\\
T_\cap(x,w_1,\dots,w_n)
&\iff
R(x,(w_1)_0,\dots,(w_n)_0)
\land
S(x,(w_1)_1,\dots,(w_n)_1).
\end{align*}
These are still computable predicates. The reason is that computing $T_\cup$ or $T_\cap$ requires only finitely many computable operations: decode each $w_j$, evaluate the computable predicates $R$ and $S$, and then take either a finite disjunction or a finite conjunction of truth values.
Why does this coding preserve the intended truth conditions? At a single quantifier level, the pairing projections give the equivalences
\begin{align*}
(\exists u\, \varphi(u)) \lor (\exists v\, \psi(v))
&\iff
\exists w\,\bigl(\varphi((w)_0)\lor \psi((w)_1)\bigr),\\
(\forall u\, \varphi(u)) \lor (\forall v\, \psi(v))
&\iff
\forall w\,\bigl(\varphi((w)_0)\lor \psi((w)_1)\bigr),\\
(\exists u\, \varphi(u)) \land (\exists v\, \psi(v))
&\iff
\exists w\,\bigl(\varphi((w)_0)\land \psi((w)_1)\bigr),\\
(\forall u\, \varphi(u)) \land (\forall v\, \psi(v))
&\iff
\forall w\,\bigl(\varphi((w)_0)\land \psi((w)_1)\bigr),
\end{align*}
whenever the free variables of $\varphi$ and $\psi$ are disjoint. The existential cases use surjectivity of the pairing projections onto pairs: witnesses $u$ and $v$ are coded by $w=\langle u,v\rangle$. The universal cases use the contrapositive: if the paired universal statement failed, a coded pair $w=\langle u,v\rangle$ would recover witnesses to failure in the original variables. Applying these one-level equivalences successively from the outermost quantifier inward proves that the synchronized $T_\cup$ and $T_\cap$ formulas define exactly $A\cup B$ and $A\cap B$.[/guided]