Please choose the correct solution to the question: how to keep from getting gas with cooked beans

Solution1: Rinse off dry beans before poaching  them

Solution2: Rinse off dry beans before cooking them

Answer format: solution1/solution2