But...
After the first pitch to #2, #5 was legal, so #6 should have been there intead of #2. After #2 flied out, but before the next pitch, it was #7's turn to come up to bat.
This is the point #10 entered the line up.
So I would think #10 was an illegal sub for #7. It was only after one pitch to #10 that #3 became the proper batter. At that point, #10, an illegal sub for #7 was batting where #3 should have been.