Team A will obviously accept the 15-yard penalty, which is penalized either on the Try or on the succeeding kickoff. The acceptance of a penalty (by either team) cancels Team B's ability to accept the illegal touching privilege. 6-3-2-b.
A, Try, B-3, with succeeding KO at the 50. Or, A, Try, B-1 1/2, with succeeding KO at the A-35.
Had the foul not been a personal foul, the (5 yard or 10 yard) penalty could not be "carried over" to the Try/succeeding KO, so there will be no possibility of Team A keeping the TD. If A accepts the penalty, the penalty is enforced with the spot of illegal touching (B-10) as the enforcement spot, with B retaining the ball (since the foul occurred during B's run). B, 1/10, B-5.
If Team A declines the penalty, then Team B will invoke the illegal touching privilege and take the ball at the B-10. AR 6-3-2-IV.
Robert