Ira S. answered 11/02/17
Tutor
5.0
(298)
Bilingual math tutor and much more
Hopefully, you can follow this.
8 gallon container 5 gallon container 3 gallon container
8 0 0 start. fill 5 gallon container from 8 gal to get
3 5 0 fill 3 gal container from 5 gal to get
3 2 3 pour3 gal into 8 gal to get
6 2 0 pour2 gal from 5 gal into 3 gal to get
6 0 2 fill 5 gal from the 6 gal in the 8 gal container to get
1 5 2 dump the 1 gal from the 8 gal container to get
0 5 2 pour 2 gal from 3 gal container into 8 gal container to get
2 5 0 fill 3 gal container from 5 gal container to get
2 2 3 pour 2gal from 8 gal into 5 gal container to get
0 4 3
You now have 4 gallons in the 5 gallon container, 3 gallons extra and wasted 1 gallon by pouring it out.
Hope this helped.