An exam is taken by 'g' girls and 'b' boys. The boys score an average mark of 'm' and the girls score an average mark of 'n'. Find the average for the whole exam.

(m b + n g) /(b+g)