>>11153334Top box moves 2 steps forward, 1 step back, so it's either 2, 3, or 5 (it takes a step back). Bottom box moves only back except for the last move, any of them could be as the pattern "breaks", but it could be 3, as the box moves back to the starting position.
I can't see any other solution but it's probably wrong.