I have the following subsets of $\mathbb R^3$: $$A=\left\{(x,y,z): \ z_1\leq z\leq z_2\, , \ x<\bar{x}\, , \ y_1\leq y\leq y_2\right\}$$ $$B=\left\{(x,y,z): \ z_1\leq z\leq z_2\, , \ x>\bar{x}\, , \ y_3\leq y\leq y_2\right\}$$ where and $\bar x$, $y_1$, $y_2$, $y_3$, $z_1$, $z_2$ are fixed numbers and $y_1\leq y_3$.
What is the union of the two sets? I thought: $$A\cup B=\{z_1\leq z\leq z_2\, , \ x\neq\bar{x}\, , \ y_1\leq y\leq y_2\}\, .$$

It might help to write the sets as
$$A = [z_1, z_2] \times (-\infty, \overline{x}) \times [y_1, y_2]$$ $$B = [z_1, z_2] \times (\overline{x}, +\infty) \times [y_3, y_2]$$
so $$A \cup B = [z_1, z_2] \times \Bigg( \Big((-\infty, \overline{x}) \times [y_1, y_2]\Big) \cup \Big((\overline{x}, +\infty) \times [y_3, y_2]\Big)\Bigg)$$
It cannot really be simplified any further.