Just translating the above information into Math:
(the definition of the volume of a cuboid)
(the changes you said)
(since these would make the sides of a cube, which are always equal)
Now simply solve.
Hope that helps
PS If you need help with solving that, feel free to ask.