In
(a), the foul by B1 causes the ball to become dead immediately, therefore the act, by B2 is not a violation. A1 is permitted the specified number of free throws, after which the foul is penalized. In
(b), the foul does not cause the ball to become dead immediately, so there are two infractions. Even though the foul occurred first, the violation is the first to be penalized if A1’s try is unsuccessful.