A: This time, 40 students were randomly selected.
(2) Number of people in Grade B: 40-5-20-4= 1 1 (person)
The bar chart is as follows:
(3)1200× 5+1140×100% = 480 (person),
About 480 ninth-grade students did well in the final math exam.