We have a triangle base prism with lengths $1,2,\sqrt{5}$ (So it has right angle). The height of this prism is $1$. We want to cut it somehow such that by gluing two pieces, we can make a cube (equilateral cuboid). How this cut must be made?
For the solution, I know the cube volume will be 1 so the sides are $1,1,1$. But I don't know how this can be done?

Hint: in a rectangle $ABCD$ with $AB=1,BC=2$ let $E$ and $F$ be the midpoints of $BC$ and $AD$, respectively. Let the line $EF$ cross the diagonal $AC$ at $O$. Show the triangles $AFO$ and $CEO$ are equal.