Since the number of girls and boys has to be the same, that means there are 50 girls and 50 boys, then:
For girls:
x+17=50
x=50-17=33 -> Girls for yes.
For boys:
x+40=50
x=50-40=10 -> Boys for yes
Then we can complete the table:
6.5m questions
8.6m answers