Let $g$ be the capacity of the tank in gallons, and let $t$ be the number of minutes it takes the first pump to fill the tank. Then the first pump pumps $\frac{g}t$ gallons a minute. The second pump is twice as fast, so it pumps $\frac{2g}t$ gallons a minute. Similarly, the third pump pumps $\frac{3g}t$ gallons a minute. Thus, working together they pump
$$\frac{g}t+\frac{2g}t+\frac{3g}t=\frac{6g}t$$
gallons a minute. It takes them $2$ minutes to pump the $g$ gallons required to fill the tank, so working together they pump $\frac{g}2$ gallons a minute. Thus,
$$\frac{6g}t=\frac{g}2\;,$$
and from here it’s straightforward algebra to find $t$ and then the times required by the second and third pumps.
The general principle in these problems is to work in terms of rates; here that means gallons per minute. Note too that I really didn’t need to introduce gallons: I could have used a tankfull as my unit of quantity. That’s as if all of my $g$’s were equal to $1$. Since the $g$’s disappear in the end anyway, I decided to stick with more familiar units.