The mean of eight numbers is 40 and the mean of other twelve different numbers is 30. What is the mean of all the twenty numbers?