Costs topped $40,000 in the two most expensive states while dipping below $20,000 in one, SmartAsset finds.