We got assigned a very similar problem. Given a jug of size A and a jug of size B, what sort of different measurements can you get? It turns out a lot. I have to go write my RWT otherwise I would write more about this. Instead, I'll just post the video and let my reader ponder the possibilities. I will be back in about 11 days.