Using A to represent the ball and B the backboard...