How legal immigration might solve two of America’s toughest problems