Twenty-one girls and twenty-one boys took part in a mathematical contest.

Prove that there was a problem that was solved by at least three girls and at least three boys.