Sammy won 40 bouncy balls at the fall festival. Later, she gave two to each of her friends. She has 8 remaining. How many friends did she give the balls to.