The box is 8 cm × 4 cm × 4 cm. The ant is at the centre of the 4 cm × 4 cm end face, and the laddu is on the bottom front edge, 2 cm from that end.
Unfold the end face and the front face into one plane. Measure from the vertical edge where they meet, taking that edge as the zero line.
On the front face: the laddu is 2 cm from the same edge, on the floor line
Horizontal separation = 2 + 2 = 4 cm
Vertical separation = 2 − 0 = 2 cm
d = √20 = 2√5 ≈ 4.47 cm
Why the book’s first attempt failed. In the cross-shaped net drawn first, the straight segment joining the ant to the laddu passes outside the net, over empty paper. A line that leaves the net does not correspond to any walk on the box, so that unfolding is useless here. Re-unfolding the box so that the ant’s face is hinged onto the face the laddu is on puts the whole segment inside the net, and then it is a genuine path.