A new study finds where millennials live can affect how well they can do.