Please choose the correct solution to the question: how do you get free throws in basketball?

Solution1: foul on the other team

Solution2: the other team needs to foul on you.

Answer format: solution1/solution2
Answer: solution2