Many ways to do it. Search the forum using the key word "flip-flop" for some ideas.
A simple method is to increment a counter every time either motor starts. When the value of the counter's accumulator is even start pump A, if odd start pump B. The least significant bit of the accumulator is true for odd numbers, false for even numbers.