Unfold the right end face onto the lid, hinging it on the lid's right edge, so the walk becomes a straight line on one flat net.
The ant is at the centre of the end face: 5 cm below the top edge (half of 10) and 8 cm from the front edge (half of 16). On the net it is 5 cm beyond the lid's right edge. The laddu is on the lid's front edge, 10 cm to the left of the right edge.
- Gap from left to right: 10+5=15 cm
- Gap from front to back: 8−0=8 cm
By the Baudhāyana theorem:
152+82=225+64=289=172
The straight line is 17 cm long.
Check another unfolding: the end face hinged on the front face puts the ant 24+8=32 cm from the left and 5 cm up, the laddu 14 cm from the left and 10 cm up: 182+52=349, which is more than 289. So the shortest walk is 17 cm, over the end face and the lid.