Question 14
Two fruit boxes X and Y each have ten numbered slots containing apples or oranges. In the original legend, Táo/A means apple and Cam/O means orange.

Move[m,n] swaps the fruits between X and Y in corresponding slots m through n, inclusive. Magic[m,n] changes each fruit in slots m through n of both boxes into the other type. Apply magic[5,7], then move[2,5], then magic[7,10]. How many more apples are then in X than in Y?

Move[m,n] swaps the fruits between X and Y in corresponding slots m through n, inclusive. Magic[m,n] changes each fruit in slots m through n of both boxes into the other type. Apply magic[5,7], then move[2,5], then magic[7,10]. How many more apples are then in X than in Y?