R2 gets 3rd and the batter gets 1st. A pitched ball that deflects out of play is a 1 base award from the time of the pitch.
bases are awarded 1 base on a pitched ball, 2 bases on a fielded ball, 3 bases for touching a batted ball with detached equipment. These awards for pitched balls are made from the time of the pitch, not the time of the throw or the time it went out of play, which a lot of people think to be the case.
We have all heard the phrase "one base on the overthrow" and in no case is that phrase true. A ground ball to shortstop that is thrown over the first baseman's head and out of play is actually a two base award from the time of the pitch. For example, if the SS kicks the ball toward the hole, runs over and picks it up before throwing wildly to first base and out of play at a time where the runner has already reached first, the runner would be awarded 3rd base and not the "one base on an overthrow" sandlot staple.