The arrangement is as follows:
A is shifted by three, 4+5+6= 15.
B moved two, 8+9= 17.
C moved two, 7+ 10= 17.
There are several other arrangements that you can change yourself.