School A has boys to girls in the ratio 5 : 6 and school B has girls to boys in the ratio 8:7. If th