Out of 14 numbers, the average of first 10 terms is 10 and the average of the remaining 4 is 24. Find the average of all the numbers?