The average of the first 3 numbers was 80. The average of the next 9 numbers was 40. What was the overall average of the numbers?