If $(X \approx X')$ and $(Y \approx Y')$, then it holds that $(X \times Y) \approx (X' \times Y')$. Indeed, let us consider an adversary which is able to distinguish $(X \times Y)$ from $(X' \times Y')$ with probability $1/2+\varepsilon$; the adversary returns $0$ if he estimates that the sample comes from $(X' \times Y')$, and $1$ else. Indeed, let us consider an adversary which is able to distinguish $(X \times Y)$. Given access to such an adversary, we construct a distinguisher $D$ for both $(X,X')$ and $(Y,Y')$ as follows:
$D$ asks for a challenge $x$ to the first challenger, which comes from $X$ with probability $1/2$, and from $X'$ with probability $1/2$. Similarly, $D$ asks for a challenge $y$ to the second challenger, which comes from $Y$ with probability $1/2$, and from $Y'$ with probability $1/2$. Then, it sends $(x,y)$ to the adversary, which returns a bit $b$. $D$ simply forward $b$ to both challengers. Note that with probability $1/2$, $x$ and $y$ come from the same side of their pair of distributions (id est, with probability $1/2$ either $(x,y)$ comes from $(X,Y)$ or $(x,y)$ comes from $(X',Y')$). In such a case, the adversary returns the correct guess $b$ with probability $1/2 + \varepsilon$; in the other case, which happens with probability $1/2$ too, the adversary returns the correct guess with probability (at least) $1/2$. Overall, given two challenges $x$ and $y$, and by feeding the pair $(x,y)$ to the adversary, $D$ wins the challenge against both challengers with probability $1/2(1/2 + 1/2+\varepsilon)=1/2+\varepsilon/2$. Hence, up to a factor $2$ in the distinguishing advantage, being able to between $(X,Y)$ and $(X',Y')$ implies being able to distinguish between $X$ and $X'$, as well as between $Y$ and $Y'$.