The Sixers are trading Jahlil Okafor, Nik Stauskas and a 2019 second-round pick to the Nets, in exchange for Trevor Booker. (Andy Lyons/Getty Images)

The Philadelphia Sixers finalized a trade Thursday that sends Jahlil Okafor, Nik Stauskas and a 2019 second-round pick to the Nets, in exchange for Trevor Booker.

The second-round pick Brooklyn will receives was the the Knicks‘ 2019 second-round pick the Sixers acquired back in 2015 on draft night, per Shamas Charania from Yahoo.

Booker’s contract pays him nearly $9.1 million this season before he hits free agency after the year. The 30-year-old is averaging a career-high 10.1 points and 6.6 rebounds per game, in 22 minutes per night.

The deal comes a little over a month after the Sixers opted not to pick up his fourth-year option on his rookie deal.

"I was fine with that," Okafor said at the time. "Honestly, I did not want them to pick up my option. "I’m just in a position to where how can I just get on the court. That's not happening here. And I want to play."

It was reported that the 76ers were willing to buyout Okafor, but would seek a trade for the former No. 3 overall pick in the draft. Last week, Okafor did not travel with the Sixers to Boston in order to get "individualized training," and has not appeared in a game since Nov 7 vs Utah.

Meanwhile, Stauskas was averaging just 7.5 minutes per game in six appearances this season after appearing regularly in the rotation one year ago, averaging 27.4 minutes.

“Jahlil and Nik are both quality young men with talent that should keep them productive in this league a long time," 76ers President of Basketball Operations Bryan Colangelo said in a press release. "We hope they find more opportunity in Brooklyn this season and thank them for their contributions over the past few years.”

Okafor played in just two games for the Sixers in the 2017-18 season: a blowout loss in Toronto, and a quick three minute run vs the Jazz, where he collected three fouls. In those two appearances, Okafor averaged 5.0 points, 4.5 rebounds and 1.0 block per game.

The No. 3 overall pick in the 2015 draft, from Duke, the 21-year-old Okafor averaged 17.5 points, 7.0 rebounds, and 1.2 blocks a game, and was named NBA All-Rookie First Team after his debut campaign.

Okafor was on a roster that was littered with big men throughout his time with the team, that included him, Joel Embiid and Nerlens Noel all taken in the top 10 of the draft. Noel was traded to Dallas, an Now Okafor is heading to Brooklyn.

Booker, a 6-foot-10 forward, is in the midst of his eighth NBA season. He has appeared in 482 games (160 starts) with Brooklyn, Utah and Washington and holds career averages of 7.1 points and 5.7 rebounds in 21.0 minutes per game. His average of 10.1 points per game in 2017-18 represents a career-best.

“Trevor Booker has been a solid and competitive two-way contributor at every NBA stop. Trevor’s abilities should complement our style of play and his experience should add to our bench depth with playoff contention in mind,” said Colangelo.