A town currently has 5,000 residents. The expected future population can be approximated by the function p(x) = 5000(1.495)^(0.3x), where x is the number of years in the future. Determine the expected population of the town in 10 and 50 years. (Round to the nearest whole number)