PITTSBURGH — It wasn’t supposed to take the San Jose Sharks this long to reach their first Stanley Cup finals. It wasn’t supposed to take this long for Sidney Crosby to guide the Pittsburgh Penguins back to the finals after winning it all in 2009.

Not that either side is complaining.

Certainly not the Sharks, whose nearly quarter-century wait to play on the NHL’s biggest stage will finally end Monday night when the puck drops for Game 1. And certainly not Crosby, who raised the Cup after beating Detroit seven years ago but who has spent a significant portion of the interim dealing with concussions that threatened to derail his career, and fending off criticism as the thoughtful captain of a team whose explosiveness during the regular season too often failed to translate into a mid-June parade through the heart of the city.

Maybe the Penguins should have returned to the finals before now. The fact they didn’t makes the bumpy path the franchise and its superstar captain took to get here seem worth it.

“I think I appreciated it prior to going through some of those things,” Crosby said. “I think now having gone through those things I definitely appreciate it more. I think I realize how tough it is to get to this point.”

It’s a sentiment not lost on the Sharks, who became one of the NHL’s most consistent winners shortly after joining the league in 1991. Yet spring after spring, optimism would morph into disappointment. The nadir came in 2014, when a 3-0 series lead over Los Angeles in the first round somehow turned into a 4-3 loss. The collapse sent the Sharks into a spiral that took a full year to recover from, one that in some ways sowed the seeds for a breakthrough more than two decades in the making.

General Manager Doug Wilson tweaked the roster around fixtures Patrick Marleau and Joe Thornton, who remained hopeful San Jose’s window for success hadn’t shut completely even as the postseason meltdowns piled up.

“I always believed that next year was going to be the year, I really did,” Thornton said. “I always thought we were a couple pieces away. Even last year not making the playoffs, I honestly thought we were a couple pieces away, and here we are.”

The Penguins, like the Sharks, are a study in near instant alchemy. General Manager Jim Rutherford rebuilt the team on the fly after taking over in June 2014 and with the team sleepwalking last December, he fired respected-but-hardly-charismatic coach Mike Johnston and replaced him with the decidedly harder-edged Mike Sullivan. The results were nearly instantaneous.

Freed to play to its strengths instead of guarding against its weaknesses, Pittsburgh rocketed through the second half of the season and showed the resilience it has sometimes lacked during Crosby’s tenure by rallying from a 3-2 deficit against Tampa Bay in the Eastern Conference finals, dominating Games 6 and 7.

Both teams have relied heavily on players who began their NHL careers in another millennium. Pittsburgh center Matt Cullen, who turns 40 in November, has four goals during the playoffs. Thornton and Marleau, both 36, were taken with the top two picks in the 1997 draft, and Dainius Zubrus, 37, draws stares from younger teammates when he tells them he used to play against Hall of Famer (and current Penguins owner) Mario Lemieux.

“When I say ‘Twenty years ago I was playing against Lemieux, they say ‘I was 2-years-old,’ ” Zubrus said.