wonderful!!!
nano0101 your answer is absolutely correct.
i appreciate your effort in making the picture.
however my answer was answer this way :
If we call the two 10 pint jugs jugA and jugB, the four pint jug4 and the five pint jug5 we can do the following. Fill jug5 from jugA. Fill jug4 from jug5. Pour jug4 back into jugA. Empty jug5 into jug 4. Fill jug5 from jugA. Fill jug4 from jug5. Empty jug4 into jugA. Fill jug4 from jugB. Fill jugA from jug4. Both jugs now contain 2 pints.