Consider a $1$ by $2$ by $3$ rectangular prism. Find the length of the shortest path between opposite corners $A$ and $B$ that does not leave the surface of the prism.
[img]https://cdn.artofproblemsolving.com/attachments/7/1/899b79b0f938e63fe7b093cecff63ed1255acb.png[/img]