When X completes 21 rounds, Y, originally at 5 rounds, switches direction and runs at double speed. They meet every 1 round of X, or every 7 rounds of Y (due to their speed ratio of 7:5), leading to 21 meetings while X completes 21 rounds, resulting in a total of while in the same direction and while in opposite directions, totaling . However, since they met during the original 7 rounds as well, the total indeed is .