Entering the 2017 season, the Yankees appeared to be in the midst of a rebuild — as much as that’s possible with the Bronx Bombers. But when the Yanks still were in first place at the nonwaiver trade deadline, the tables turned.

Now, in the closing stretch of the season, they’re fighting to get back atop the division while holding on to the top wild-card spot. Here’s a look at some important numbers as the Yankees try to make the playoffs.

Games left: 10

AL East standings

Red Sox: 88-64 (Magic number: 8)

Yankees: 85-67, 3 games back

advertisement | advertise on newsday

Rays: 74-79, 14.5 games back

Orioles: 74-80, 15 games back

Blue Jays: 71-82, 17.5 games back

AL wild-card standings

Yankees: 85-67, 6.5 game lead

Yankees videos

Twins: 79-74, second wild card

Angels: 76-76, 2.5 games back

Rangers: 76-76, 2.5 games back 

Royals: 75-77, 3.5 games back

Mariners: 74-79, 5 games back

advertisement | advertise on newsday

Rays: 74-79, 5 games back

Orioles: 74-80, 5.5 games back

Games left vs. division: 9

Games left vs. wild-card contenders: 4

Home games: 7

advertisement | advertise on newsday

Away games: 3

Games vs. Royals: 1