Basically there are two ways to earn extra shots or bonus shots. Firstly, when you strike the ball and it passes through the hoops and you get one bonus shot.
Secondly, when you attempt your strike and make the ball pass through the hoops, and the ball hits another ball that comes in its way. You get two extra shots for hitting another ball with your shot.