Who would have won the 1980 presidential election if Ted Kennedy had beaten Jimmy Carter for the Democratic nomination?

Who would have won the 1980 presidential election if Ted Kennedy had beaten Jimmy Carter for the Democratic nomination?