A cube is placed inside another cube I known following problem with two square
$$Area(1)+Area(3)=Area(2)+Area(4).$$


My question. Is this problem true for two cubes?


We place a cube $XYZT.X'Y'Z'T$ into another cube $ABCD.A'B'C'D',$ is it true that
\begin{align*} 
 & Vol(ADD'A'.XTT'X')+Vol(BCC'B'.YZY'Z')\\
 =&Vol(ABCD.XYZT)+Vol(A'B'C'D'.X'Y'Z'T')\\
 =&Vol(CDD'C'.ZTT'Z')+Vol(ABB'A'XYY'X').
\end{align*}

My question. If this is true for two cubes then is this true for two similar rectangular prism?
My question. And are these problems true for two hypercubes and two similar hyperrectangles in $n$-dimesion Euclidean space?

 A: I believe that the answer is negative.  The tidiest way to calculate is as follows.  We can identify $\mathbb{R}^3$ with the purely imaginary quaternions $\mathbb{H}_0$, and let $U$ be the cube with vertices $\pm i\pm j\pm k$.  Then any other cube $V$ has the form $a+zU\overline{z}$ for some $a\in\mathbb{H}_0$ and $z\in\mathbb{H}\setminus\{0\}$.  For any face $F$ of $U$, let $\alpha(F)$ be the volume between $F$ and $a+zF\overline{z}$, and put $\beta(F)=\alpha(F)+\alpha(-F)$.  The question is whether $\beta(F)$ is independent of $F$.  To calculate $\alpha(F)$, note that we have a bijection $p$ from $[0,1]\times F$ to the relevant region given by $p(t,x)=(1-t)x+t(a+zx\overline{z})$, so we just need to integrate the Jacobian determinant of $p$ over $[0,1]\times F$.  To express this determinant in terms of quaternionic algebra, note that there is an isomorphism $\Lambda^3(\mathbb{H}_0)\to\mathbb{R}$ given by $x\wedge y\wedge z\mapsto\text{Re}(xyz)$.
The derivatives of $p$ with respect to $x$ depend only on $t$.  Thus, we can bring the integral over $F$ inside the determinant, which has the effect of replacing $\partial p/\partial t$ by $4$ times its value at the center $c\in F$, which is $4(a+zc\overline{z}-c)$.  The derivatives of $p$ with respect to components of $x$ are of the form $m(z)+c(z)t$, so the determinant is just a quadratic in $t$.  If I have everything straight, we just end up with 
$$ \beta(F) = \frac{8}{3}(1-|z|^2)((1+|z|^2)^2 - \text{Re}(z)^2 - 3\langle z,c\rangle^2) $$
(If we call the above $\phi(z,c)$, it is not hard to check that $$\phi(z,i)+\phi(z,j)+\phi(z,k)=8(1-|z|^6) = \text{vol}(U) - \text{vol}(V), $$
as it should be.)
If $z$ is real then this is independent of $c$, so the volume formula is correct when the inner cube is parallel to the outer one.  The same holds if $\langle z,c\rangle^2$ is independent of $c\in\{\pm i,\pm j,\pm k\}$; this is the case when the inner cube is obtained by rotating the outer one around one of its long axes, then shrinking and translating it.  But in general the formula does not hold.
