Alex buys 24 apples from the supermarket. When he gets home, he finds that 6 apples are bad. What percentage of the apples are bad? Round your answer to the nearest number.