How to play: Sharks’ Ryan Carter on trade with Penguins to make room for Ryan Carter

SAN FRANCISCO — The Sharks are getting a good deal on Ryan Carter, a veteran defenseman who has spent the past two seasons with Pittsburgh.

Carter, a second-round pick in the 2013 draft, played in 39 games with Pittsburgh in 2014-15.

He was named captain of the team in 2015-16, where he was a finalist for the Vezina Trophy.

He has scored 15 goals and 39 points in his last 39 games for Pittsburgh, which has lost six of its past eight games and has a 7-13-1 record.

He has two goals and nine points in 17 games in 2017-18.

Carter signed a one-year, $3.5 million contract with the Sharks on Thursday.

The move opens up salary-cap space for the Sharks and could create salary cap room to make another trade.