The Brooklyn Nets are positioning themselves to become major players in free agency this offseason, specifically with rumored sights on both Kyrie Irving and Kevin Durant.

What if they could add a third star, too?

As in: Pelicans star Anthony Davis, who is on the trade block and, reportedly, the Nets could be a team that’s interested in a deal.

Brooklyn is in the process of creating enough cap space to acquire two of the three aforementioned stars, but there is a way they can get all three. Admittedly, it’s an outlandish scenario that would require one (or both) of Irving or Durant to take a slight pay-cut.

On paper, though, that trio together would even rival what the Warriors had with Durant, Stephen Curry and Klay Thompson.

Here’s what the Nets could do in a hypothetical world where everything fits in their favor.

First: They already took the first step, dumping Allen Crabbe’s $18.5 million deal on the Atlanta Hawks, only taking back Taurean Prince’s $3.5 million salary and thus clearing around $15 million in cap space.

Second: They’ll have to renounce cap holds for DeMarre Carroll, Rondae Hollis-Jefferson, Jared Dudley, Ed Davis and Theo Pinson, which would give them around $44.7 million in cap space.

Third: Agree to a sign-and-trade with D’Angelo Russell for around $25 million in 2019-20 (on a 4 or 5-year deal), and package him with Jarrett Allen, Dzanan Musa and the Nuggets’ first-round pick (No. 27) in exchange for Anthony Davis, Christian Wood and Kenrich Williams. Russell might be willing to sign this because he can sign for more money with the Nets than any other team. Before cutting any non-guaranteed deals, this puts Brooklyn at $39.9 million in cap space.

Fourth: Trade Spencer Dinwiddie to the Utah Jazz for Derrick Favors. Dinwiddie is set to earn around $10.6 million this season, while Favors has a $16.9 million non-guaranteed deal for next season.

Fifth: Cut Derrick Favors, Treveon Graham, Christian Wood, Kenrich Williams. All have full or partially non-guaranteed deals. This puts the Nets at $53.18 million in cap space.

Sixth: This is where it likely falls apart, but if the Nets could convince Irving and Durant to split the $52.1 million cap space between the two of them — it would give each around $27 million — on two-year deals, it would allow them to still make significant money, contend for NBA titles and then be able to re-sign in 2021 at full max deals after Nets gain their Bird Rights. Again, this is unlikely, but if the goal is winning an NBA title, there is few better scenarios than this one for Durant and Irving.

The appeal of doing this for Brooklyn instead of the Knicks — the other team that could pull it off — is that Brooklyn would have a better roster still in place after all these moves, with Taurean Prince, Joe Harris and Caris LeVert still on the roster.

This is how the Nets’ roster would look after all of these moves ...

PG Kyrie Irving ($27M)

F Kevin Durant ($27M)

F Anthony Davis ($27M)

G/F Joe Harris ($7.6M)

F Taurean Prince ($3.48M)

G Caris LeVert ($2.62M)

PG Shabazz Napier ($1.8M)

F Rodions Kurucs ($1.69M)

After that, the Nets would still have their $4.7 million room mid-level exception and the first pick in the second round of the upcoming draft to fill two more roster spots, likely one or both of those on a center. Options for that include Kosta Koufos, Kyle O’Quinn, Nene, Tyson Chandler, Ekpe Udoh, Enes Kanter and Pau Gasol.

Plus, it’s possible Jared Dudley (and/or other veterans) would be willing to sign at the veteran’s minimum, which can be used even when teams are over the cap.

Adding a backup center, second-round pick and re-signing Dudley would put the Nets at 11 players, with the ability to sign others to minimum deals to fill out the roster.

Again, this is an out-there scenario, but it’s a fun idea that would put together potentially the most gifted trio in the NBA.