The over/under was 2.5 and the teams scored 3 goals, so people who bet the over won York City needed to win by 1 goal or more to cover the spread. They did cover, so people who took York City won.