A cuboid (a box) has a longest diagonal that runs from one corner straight through the inside to the opposite corner. To find its length we apply Pythagoras twice.
First, look at the rectangular base, with sides
Now stand the height
So the longest diagonal of an
Step through the sketch: the box, then the base diagonal