Earning two-year community college degrees in health care or STEM fields can put young people on a solid course to better earnings in well-paid fields with high demand for workers in Massachusetts, but there are big gaps in those seeking these degrees between students from low-income and better-off households.