Answer:
to score points by putting the ball inside the hoop (basket) and to prevent the opposing team from doing the same ⛹️♀️