DENVER – Dusty May’s plan was working perfectly.

Near the end of the third quarter of Sunday’s 116-114 squeaker at Utah, May tried to steal three or four minutes with both Cooper Flagg and Kyrie Irving catching a breather.

It worked beautifully. The group led by Santi Aldama, Walter Clayton Jr. and Zaccharie Risacher came in with a 16-point lead with 3:52 to go in the quarter. They ended the third frame with a 91-74 lead.

Yes, Flagg re-entered the game for the final 52 seconds of the period because the Mavericks had a two-for-one possession opportunity. But the star-less group did its job and held the fort down, earning valuable minutes of rest for Flagg and Irving.

Of course, the fourth quarter was a totally different story. Irving, on the second night of back-to-back games, didn’t play until the final seconds of the game when the Mavericks were holding on for dear life. May admitted he probably took Flagg out too soon – he exited with 6:08 left and the Mavericks up 104-86, a seemingly safe cushion.

It must be remembered, foremost, that the Mavericks did, indeed, get the win, even if it was far more stressful than it should have been.

And the success of the second unit in the third quarter is a positive sign. We all know there will be times going forward when Flagg and Irving will be unable to play.

“They got to be able to stay aggressive, get organized and set up, and they’re talented enough with Walter and Caleb (Martin) out there,” Flagg said. “Santi was out there, too.

“They have plenty of talent. So it’s just about getting organized and getting to the spots they like. There’s so much talent on our team that we should be able to steal some minutes like that and they’ll get better as we go along.”

That’s the plan, even if it takes a few bumps along the way like the finish against Utah, when a barrage of Jazz three-pointers gave them a chance to win the game at the buzzer. Fortunately, that final three-pointer did not drop.

And so, the Mavericks move along to Denver on Tuesday for the first of two NBA Cup games wrapped around Thanksgiving. So far, the Mavericks are 2-0 in Cup play and if they can beat the Nuggets and Phoenix on Friday, they will be in the eight-team knockout phase.

That would be nice. But it’s not the priority right now. The Mavericks know in the grand scheme that they are in a building mode for the future. But what’s wrong with picking up wins along the way, which they have done a good job of with a 10-7 record.

“Obviously, you want to manage the game a little better than we did down the stretch,” May said of things going haywire in Utah. “I do think we let off the gas when we went up 18 or 20. But I don’t ever want to act like we did this or that because Utah, that second group played really well for them and they made tough shots.

“There’s a lot to learn from the last five to 10 minutes of this game. But we’ll learn from it and be better because of this experience.”

Risacher played during both the third-quarter success story and through parts of the fourth-quarter meltdown. He knows the potential that the non-Coop-and-Kai group has.

“We got to be more consistent, play for 48 minutes,” Risacher said. “Even though we played great almost the whole game, we got to make sure we keep our intensity high and keep making those winning plays to the end.

“We were playing good ball, the ball was moving, we were playing fast, guarding. It’s all about making stops, getting easy buckets and playing the right way. It was good for us to be able to compete even though Coop and Kai were on the bench together. We have good players and we can do a lot of good things together.”

Again, it’s a learning process. But it’s more fun to learn when you’re winning.

Here’s what else to look for when the Mavericks visit the Nuggets Tuesday:

The NBA Cup is there for the taking and while it’s not going to change the course of the Mavericks’ franchise in the big picture, making the knockout stage is something they have never done in the previous three years of the in-season tournament’s existence. The Nuggets and Mavericks both are 2-0 in Group A in the Western Conference Cup play. So the winner becomes the favorite to reach the knockout stage. The loser will not necessarily be eliminated from knockout-phase contention, but would have to get in as the fourth team from the three West groups via a tiebreaker, probably points-differential.The Nuggets have been relying heavily on Nikola Jokic, which is no surprise. The two-time MVP has been on a roll lately, averaging 27.6 points, 11.9 rebounds and 9.3 assists over the last seven games. The Nuggets are 5-2 in those games, and have won their past three, including a 151-145 overtime marathon over Chicago on Sunday. In that game, Jokic had 37-18-11.Jamal Murray had 45 points and all five Denver starters scored at least 16 in the defense-optional game at Chicago.The Mavericks have won three in a row and will be looking for their first four-game winning streak since January of last season, when they won four in a row that included a victory at eventual NBA champion New York.After an illness-marred trip in early November on which the Mavericks went 0-3, Cooper Flagg has returned with a vengeance. He has averaged 27.7 points and seven assists during the current three-game win streak.The injury report remains mostly unchanged for the Mavericks, although there appears to be hope that 7-1 center Dereck Lively II is trending toward more activity on the court. He’s been sidelined since last November with multiple foot surgeries and the Mavericks will remain ultra-cautious with the 22-year-old. Sergio De Larrea, Tarik Biberovic and P.J. Washington also missed the Utah game. Washington (illness) could be nearing a return. He is listed as questionable for the Denver game. Biberovic, De Larrea and Tobi Lawal are out.

Dallas Mavericks (10-7) at Denver Nuggets (10-5)    

WHERE: Ball Arena, Denver

TV: KFAA-29, MavsTV+, NBC, Peacock

RADIO: 105.3 The Fan, 99.1 FM Zona MX (Spanish)