question.

More than half of a certain class got A in their first term examination. More than half of the pupils with A in their first term examination also got A in their second term examination. Altogether 10 pupils got A in both examinations. What is the largest possible number of pupils in the class?