There were 3 girls in the Grade 7 class who joined both of the clubs.
Explanation:
Total number of girls : 20
Girls who joined club A : 9
Girls who joined club B : 14
Total number of recruited girls : 23
17 girls joined a single club
3 girls joined both clubs.
= 17+(3)2=23