If Team B is in the bonus, B2 is either awarded a one-and-one and the ball remains in play if either free-throw attempt touches the basket ring but is not successful, or is awarded two free throws and the ball remains in play if the second is unsuccessful. If the last free-throw attempt by B2 is successful, Team A shall put the ball in play from out of bounds anywhere along the end line by B’s basket. If Team B is not in the bonus, it is awarded the ball for a throw-in from a designated spot out of bounds nearest to where the foul occurred. Penalties are administered in the order in which the fouls occurred.