\begin{align}
\sup(D)
&= \sup\{a^2: a \in A\}\\
&= \sup(\{a^2: a \in B\} \cup \{a^2 : a \in C\})\\
&= \max(\sup\{a^2: a \in B\}, \sup \{a^2: a \in C\})\\
&= \max((\sup B)^2, (\inf C)^2).
\end{align}
Each step will need justification.
The first two equalities are by definition.
The last equality is due to elements of $B$ being nonnegative, and elements of $C$ being nonpositive. You may need to be more formal if you are being graded rigorously.
The third equality requires you to prove $\sup(E \cup F) = \max(\sup E ,\sup F)$.
Proving "$\ge$":
clearly $\sup E \le \sup (E\cup F)$ and $\sup F \le \sup (E \cup F)$.
Proving "$\le$":
for any $\epsilon>0$ there is an element $x$ of $E\cup F$ such that $x\ge \sup(E \cup F) - \epsilon$. If $x \in E$, then $x \le \sup E$, so $\sup(E \cup F) - \epsilon\le x \le \sup E \le \max(\sup E, \sup F).$
$~$
Otherwise $x \in F$ and then $\sup(E \cup F) - \epsilon \le x \le \sup F \le \max(\sup E, \sup F).$ Since $\epsilon > 0$ is arbitrary, we have $\sup(E \cup F) \le \max(\sup E, \sup F)$.