You will be given a definition of a task first, then some input of the task.
The task is to generate the correct answer for a given math problem.

Problem: there are 2 sections a and b in a class , consisting of 36 and 44 students respectively . if the average weight of section a is 40 kg and that of section b is 35 kg , find the average of the whole class ?
Output:
37.25 kg