A study analyzed areas with populations between 10,000 and 50,000 and found the ones that are as expensive as major coastal cities.