Here's what matters: each team is an object with two properties. You need to compare different properties across different objects. A Team class with homeColor and guestColor makes this clean.
I'll show you the comparison logic. For each pair of teams, you check: does the home team's homeColor match the guest team's guestColor? This cross-property check is where classes shine.
Without a class, you'd need parallel arrays and careful indexing. This pattern appears in any problem where you compare objects with multiple attributes. Student grades, product prices, date ranges - when objects have several properties, classes keep them organized.