It ranks 47th in affordability but when more than 60 other metrics were applied Massachusetts emerged as the best state in the country, according to rankings released on Tuesday.The state's supreme billing was propelled by a number one ranking in education and number two in health care, metrics that were given more weight by analysts at U.S.