It's the middle of the night, and I'm dead tired and maybe not thinking straight, but that doesn't seem right to me, that A's foul alone gives it the opportunity to retain possession.
B intercepted the ball with clean hands. A new run begins at that point, and unless B loses possession, there is no way that A can get the ball back. B then committed a BIB at the A25. A fouled with a HCT, and a dead ball UNS, both of which are 15 yards each. We go from the spot of B's foul (A25), back 10 to the A35, then forward 15 for the HCT, which put us at the A20, then half the distance for the deadball UNS foul. B still keeps the ball, B 1/10 at the A10.
I don't really know Fed rules but I think the enforcement on this is the same. If not... shame me back to the Texas/NCAA board.