Please choose the correct solution to the question: How do you get ejected in basketball?

Solution1: Get a flagrant 1 foul called on you.

Solution2: Earn a flagrant 2 foul or get 2 technical fouls.

Answer format: solution1/solution2