General Motors Co. will donate $50 million over the next five years to Michigan science, technology, engineering, arts and math education programs.