What is the average of all positive integers that have four digits when written in base 3 , but two digits when written in base 6 ? Write your answer in base 10 .
Answer and explanation please.
Thank you
The numbers that work are 27, 28, 29, 30, and 31, so the answer is 29.