Sort:  

You need to look for the smallest number of coins which should be moved ...to have the result :-)...in the second box is 9 not 6