Flynn,
Let n11= the number of 11 year olds
Let n9 = the number of 9 year olds
then 11*n11+9*n9= 138 the sum of their ages add up to 138 years
and n11+ n9= 14 the total number of children adds up to 14
if you solve this system of two equations for the two unknowns n11 and n9 you will find n9=8 and n14=6
Jim