Let D be the distance from the counter surface to the floor, let h and w be the height and width of each can, respectively.
The first measurement will give a distance D + h - w, the second will give D + w - h.
Obviously, D + h - w cannot equal D + w - h, unless w = h.
I'm looking at you, Imperial system!
I was just thinking about this the other day. Thanks for that
Any accepted unit of measure will work as long as everyone uses the same unit length.