Glen Perkins stranded the tying run at third in the ninth inning and collected his 11th save as the Twins won for the fourth time in five games.

Kyle Gibson earned a shot at his fourth victory on Friday, but the young righthander seemed to earn something even more valuable, too: His manager’s trust.

Gibson allowed one run over seven innings in the Twins’ 5-4 victory on Friday, but the final out he recorded may have been the most telling.

Gibson was approaching 100 pitches and protecting a 5-1 lead with two runners on base and two outs in the sixth inning. Up to the plate walked Robinson Cano, the Mariners’ $240 million man, a batter who annually brutalizes Minnesota pitching, a hitter who had already lined a sharp single and missed a home run by a foot or two off the center-field fence.

Gardenhire stuck with his starter, in a situation Gibson might not have been trusted with in the past. And Gibson came through. Cano took a ball, then bounced a 1-0 fastball directly at second baseman Brian Dozier for the third out.

It’s the latest sign of maturity in the Twins’ least-experienced starter, and a good bounce-back performance after being raked for six runs in just two innings last Saturday in Detroit.

“We just want him to pound the strike zone,” Gardenhire said of Gibson, who walked two and struck out four. “... He’s got a good mix, so just use them all.”

Maybe Mariners starter Chris Young, 3-0 coming into the game, should have heeded the advice. The veteran starter, eight years older and four inches taller than the 6-foot-6 Gibson, allowed five doubles and two homers in his seven innings of work, the most extra-base hits the Twins have collected since June 22 of last season. Young hadn’t allowed two home runs in a game this year, but Josmil Pinto and Brian Dozier victimized him Friday.

Pinto’s homer was his sixth of the year and Dozier’s was his 10th, making him just the 11th Twin ever to reach double-figures in the team’s first 40 games.

Aaron Hicks, fresh off his walk-off heroics on Wednesday, doubled on the first pitch he saw Friday, lacing the ball into the right-field corner to open the third inning. Two batters later, Dozier doubled to the left-field corner, driving in Hicks, and Trevor Plouffe followed with a double to deep center field, staking Gibson to a 2-0 lead. The home runs doubled that lead, and Eduardo Escobar drove in another run with a bases-loaded single in the sixth.

The Mariners scored in the fifth inning on a walk and Cano’s double, which missed carrying into the Seattle bullpen by a foot or two. They added three more in the eighth off left-handed reliever Caleb Thielbar, who gave up a single, a walk and a triple to Dustin Ackley. Casey Fien relieved Thielbar, and catcher Mike Zunino greeted him with a sacrifice fly to close the lead to one run.

That set up Glen Perkins’ chance at redemption, one day after surrendering a three-run lead to the Red Sox, just his second blown save of the season. The Twins closer entered the game with 10 saves in 12 opportunities, though he had been scored upon in three of his previous eight appearances.