The average of 30 numbers is 40 and that of other 40 numbers is 30. The average of all the numbers is :
[A] $34$
[B] $34\frac{2}{7}$
[C] $34.5$
[D] $35$