Need hint for equation system I stumbled upon the following in an old math book and could use a hint:

The sum of the volumes of two cubes is 35, whereas the sum of the
  surface area of the two cubes is 78. Calculate the lengths of the
  sides of the two cubes.

So, if we let $x$ be the length of the side of one cube, and $y$ be the length of the side of the other, we must have:
$$x^3 + y^3 = 35$$
$$6x^2 + 6y^2 = 78$$
i.e.:
$$x^3 + y^3 = 35$$
$$x^2 + y^2 = 13$$
How to proceed from there? If I try the obvious things like isolating x or y and plug into the other one I get a mess. Is there some type of substitution required?

$35=x^3+y^3=(x+y)(x^2-xy+y^2)=$
$=(x+y)(13-xy)$
But 
$(x+y)^2=x^2+y^2+2xy=13+2xy$ and so
$xy=\frac{1}{2}[(x+y)^2-13]$ and it can be replaced  to first equation to get that 
$35=(x+y)(13-\frac{1}{2}((x+y)^2-13))$
and if you define $z:=x+y$ you must resolve 
$70=z(39-z^2)$
(You can observe that the solutions of the equation are  $z=2$,$z=5$ and $z=-7$)
So the form of the solutions of your equations is $(x,z-x)$ where $z$ is the solution of that particular equation. 
Now you can calulate 
$x^2+(z-x)^2=13$ 
and you have that the unique solutions of your sistem are of the form $(x,z-x)$ such that verify the equation: 
$ 2x^2-2zx+(z^2-13)=0$ 
