Tom plants a tree that is 1 year old and 5 feet tall. It gains 3 feet per year. How old is it when it is 23 feet tall?