I'm going to rename the variables, because I think it will make my explanation less confusing: If $x_1+y_1+z_1=x_2+y_2+z_2=x_1x_2+y_1y_2+z_1z_2=0$, then find the value of:
$$
\frac{x_1^2}{x_1^2+y_1^2+z_1^2}+\frac{x_2^2}{x_2^2+y_2^2+c_2^2}
$$
Let's define some vectors: Let $\vec{v}_1=(x_1,y_1,z_1)$ and $\vec{v}_2=(x_2,y_2,c_1)$. Clearly, both $\vec{v}_1$ and $\vec{v}_2$ are on the plane $x+y+z=0$ since $x_1+y_1+z_1=x_2+y_2+z_2=0$. Moreover, $\vec{v}_1$ and $\vec{v}_2$ are perpendicular to each other, i.e. $\vec{v}_1\cdot \vec{v}_2=0$ (where $\cdot$ represents the dot product) because $x_1x_2+y_1y_2+z_1z_2=0$.
Now, without loss of generality, we can assume $\vec{v}_1$ and $\vec{v}_2$ are unit vectors. We can assume this without losing generality is because, if $\vec{v}_1$ or $\vec{v}_2$ is not a unit vector, then we can just normalize that vector and all the conditions we need will still hold: Normalizing a vector just changes the length of that vector, so normalization will not change whether the vector is on the plane $x+y+z=0$ and will not change whether the vector is perpendicular to the other vector.
Because we assume $\vec{v}_1, \vec{v}_2$ are unit vectors, we have
$$
x_1^2+y_1^2+z_1^2=x_2^2+y_2^2+z_2^2=1
$$
Therefore, the value we want to find becomes just $x_1^2+x_2^2$.
Next, notice that both $\vec{v}_1$ and $\vec{v}_2$ are perpendicular to the vector $(1,1,1)$, because $x_1+y_1+z_1=x_2+y_2+z_2=0$. Then, if we normalize $(1,1,1)$, we find that both $\vec{v}_1$ and $\vec{v}_2$ are perpendicular to $(1/\sqrt{3},1/\sqrt{3},1/\sqrt{3})$.
Thus, $\vec{v}_2$ is a unit vector which is perpendicular to both $\vec{v}_1$ and $(1/\sqrt{3},1/\sqrt{3},1/\sqrt{3})$. It is a common fact that, for any unit vector $\vec{a}\in\mathbb{R}^3$ which is perpendicular to two other unit vectors $\vec{b},\vec{c}\in\mathbb{R}^3$, either $\vec{a}=\vec{b}\times\vec{c}$ or $\vec{a}=-(\vec{b}\times\vec{c})$, where $\times$ here represents the 3D cross-product. Thus, one of the below equations must be true:
$$\vec{v}_2=\vec{v}_1\times (1/\sqrt{3},1/\sqrt{3},1/\sqrt{3})\ \ \ \ \ \ \ \text{ or }\ \ \ \ \ \ \ \vec{v}_2=-(\vec{v}_1\times (1/\sqrt{3},1/\sqrt{3},1/\sqrt{3}))$$
By taking the cross product of $\vec{v}_1=(x_1,y_1,z_1)$ with $(1/\sqrt{3},1/\sqrt{3},1/\sqrt{3})$, we see that in the first case, the $x$-component of $\vec{v}_2$, which is $x_2$, is $y_1/\sqrt{3}-z_1/\sqrt{3}$. In the second case, the $x$-component of $\vec{v}_2$ is just the negative of this expression, i.e. $x_2=-(y_1/\sqrt{3}-z_1/\sqrt{3})$. However, in either case, when we square this expression, we find that:
$$
x_2^2=\left(\frac{y_1}{\sqrt{3}}-\frac{z_1}{\sqrt{3}}\right)^2=\frac{y_1^2}{3}+\frac{z_1^2}{3}-\frac{2y_1z_1}{3}
$$
Ergo, we have
$$
x_1^2+x_2^2=x_1^2+\frac{y_1^2}{3}+\frac{z_1^2}{3}-\frac{2y_1z_1}{3}
$$
Now, I'm going to split $x_1^2$ into $2x_1^2/3+x_1^2/3$, $y_1^2/3$ into $2y_1^2/3-y_1^2/3$, and $z_1^2/3$ into $2z_1^2/3-z_1^2/3$. By rearranging terms a little, the expression then becomes:
$$
x_1^2+x_2^2=\frac{2}{3}x_1^2+\frac{2}{3}y_1^2+\frac{2}{3}z_1^2+\frac{1}{3}x_1^2-\frac{1}{3}y_1^2-\frac{1}{3}z_1^2-\frac{2}{3}y_1z_1
$$
Factor out $2/3$ from the first three terms and the $-$ sign from the last three terms:
$$
x_1^2+x_2^2=\frac{2}{3}(x_1^2+y_1^2+z_1^2)+\frac{1}{3}x_1^2-\left(\frac{1}{3}y_1^2+\frac{1}{3}z_1^2+\frac{2}{3}y_1z_1\right)
$$
We know $x_1^2+y_1^2+z_1^2=1$:
$$
x_1^2+x_2^2=\frac{2}{3}+\frac{1}{3}x_1^2-\left(\frac{1}{3}y_1^2+\frac{1}{3}z_1^2+\frac{2}{3}y_1z_1\right)
$$
Clearly, $(1/3)x_1^2=(x_1/\sqrt{3})^2$. Moreover, with the last three terms, by completing the square, we can see that those last three terms are actually $(y_1/\sqrt{3}+z_1/\sqrt{3})^2$:
$$
x_1^2+x_2^2=\frac{2}{3}+\left(\frac{x_1}{\sqrt{3}}\right)^2-\left(\frac{y_1}{\sqrt{3}}+\frac{z_1}{\sqrt{3}}\right)^2
$$
Finally, I'll leave it as an exercise to you to show that $(x_1/\sqrt{3})^2-(y_1/\sqrt{3}+z_1/\sqrt{3})^2=0$. Hint: Use the fact that $x_1+y_1+z_1=0$.
Using this final hint, we find that:
$$
x_1^2+x_2^2=\frac{2}{3}
$$
so the final answer is $2/3$.