A train travels a distance of 45 kilometers in the first hour, 47 kilometers in the second hour, 49 kilometers in the third hour, and so on, increasing its distance traveled by 2 kilometers each hour. How many hours will it take for the train to travel a total distance of 495 kilometers? Let's think step by step and output the final answer within \boxed{}.
user