Here is why:
-The foul is a "Basic Spot Enforcement" foul, i.e., it is penalized according to the 3 & 1 Principle, relative to the Basic Spot for that foul.
-The foul occurred during a running play, and the related run ended beyond the neutral zone, so the the Basic Spot is the end of the related run, which is the 50.
-The foul occurred behind the Basic Spot.
-The foul was by the offense during the related run.
-By the 3 & 1 Principle, fouls behind the Basic Spot by the offense are penalized from the Spot of the Foul.
-The exception for fouls by the offense behind the neutral zone obviously does not apply.
-The distance penalty is 15 yards.
-Penalizing 15 yards from the Spot of the Foul - the A-32 - leaves the ball on the A-17.
-The down is repeated - 2nd down.
-Thus, A, 2/13, A-17.
-Assuming the ball carrier was tackled inbounds, the clocks start on the RFP signal (25 on the play clock).
In no case does the timing of a foul during a running play affect the enforcement spot. The line-to-gain is not considered until after the penalty is enforced. If the ball is behind the LTG after the penalty, then the down is repeated (unless the penalty includes "loss of down," then it will be the next down in the series). If the ball is beyond the LTG after the penalty, then Team A gets a new series (first down), even if the penalty includes "loss of down."