For the first one you just need to pour 1 gallon of water from the 5 gallon jug in the 3 gallon jug... If I understood well the question...
I think I probably didn't understand the question but...
5.8m questions
7.5m answers