Question 9
In a fund-raising campaign of a school, 11 girls and $b$ boys of Class 2A raised the same total amount as that of Class 2B which has 9 boys and $g$ girls, where $b>0$ and $g>0$. The total amount that each class raised is $\$(bg+9b+11g+145)$. Given that the average amount raised by each of the two classes is $\$x$ and $x$ is an integer value more than 30, find the value of $x$.