10. The mean of the following distribution is 50. Find the value of a and hence the frequencies of 30 and 70.