We wanted to find the minimum number of mixes to equally distribute liquid A. It is critical to note that liquid B’s positions do not matter. There are many ways to do this in the minimum mixes, but they are essentially the same. First, mix the glass with 500mL of liquid A with another. We now have 2 glasses with 50mL and 1 with 150mL. Mix one of each. Finally mix both glasses that now have 100mL of liquid A with the 2 that have none. And there we have it. It takes 4 mixes to get 50mL of liquid A in each of the 5 glasses.