Finding the dimensions of a cuboid given the volume, surface area, and diagonal lsp's answer is a special case of Vieta's formula for cubics.