How many earned runs are in this scenario?
Batter 1 walked. Batter 1 stole second. Batter 2 flied out to 2b. Batter 3 doubled to left center; Batter 1 scored. Batter 3 advanced to third on a wild pitch. Batter 4 reached on an error by 3b. Batter 5 doubled to left field; Batter 4 advanced to third; Batter 3 scored. Batter 6 grounded out to 3b. Batter 7 walked. Batter 8 doubled to left field; Batter 7 scored; Batter 5 scored; Batter 4 scored. Batter 9, P struck out swinging. 5 runs, 3 hits, 1 error, 1 LOB.
Reconstuct the inning without the error and the inning ends with batter 6 so batters5 & 7 are unearned and batter 4 is unearned because no run can be scored as earned if the batter reaches on a fielding error. So only 2 runs are earned. (Rule 10.16)