That's different, though - in that case B intercepts the ball and B commits the foul. In this situation, B intercepts the ball, but A commits the foul.
While I don't agree with the casebook play, this play given is exactly what is written in the casebook, and the casebook states that enforcement is from the 20.