The problem is as follows:
There are two cubes, a big one of which we know the edge is $$2x^2+1$$ and a small one with a volume of $$x^2-1.$$
If we try to fill the big cube with cubes like the small one we get a remaining space that has exactly the same volume of the small cube.
How long is the edge of the bigger cube?
Edit 1: I invented the problem to be solved using Ruffini's rule, but I would like to have some feedback about it :)
Edit 2: removed the dimensions by sugestion of @okrzysik
NOTE: Instead of having the remaning space equal to the volume of the small cube, there should be a difference, so assume that the remaning volume has less 4 cubic units than the smaller cube.