NEW YORK — The Warriors have agreed to trade guard Alec Burks and forward Glenn Robinson III to the Philadelphia 76ers, according to ESPN’s Adrian Wojnarowski.

In return, Golden State will receive three second-round picks over the next three years — a 2020 second-round pick via Dallas, a 2021 second-round pick via Denver and a 2022 second-round pick via Toronto, per Wojnarowski.

After the trade, the Warriors will have two second-round picks in June’s NBA draft to go along with what will likely be a top-five overall pick. They had previously acquired Utah’s second-round pick in the trade the sent center Willie Cauley-Stein to Dallas.

Golden State now has five second-round picks over the next seven years. Two weeks ago, they only had one.

The move saves the Warriors $4.2 million. That may not be enough to avoid paying the luxury tax since they now have four open roster spots, three of which they will need to fill.

Prior to Wednesday’s loss against the Nets, Burks and Robinson were removed from the lineup as they were expected to be traded.

In the days leading up to Thursday’s NBA trade deadline, Burks and Robinson had been linked to trade rumors as the Warriors look to shed salary and avoid an expensive luxury tax bill.

During a lottery-bound season, Burks and Robinson emerged as two of the Warriors’ most reliable players and could play meaningful roles for playoff teams for the remainder of the season. Both players signed with Golden State last summer to veteran minimum contracts.

After posting career-best numbers, the Warriors didn’t expect to be able to re-sign Burks or Robinson when they become free agents this summer as the two will command higher salaries.

Related Articles How the Warriors are working to get more Black men teaching in San Francisco’s classrooms

As Clippers collapse shows, chemistry will be key for the Warriors to return to prominence

Warriors’ Steve Kerr says NBA needs more Black head coaches

The Deets: The Clippers’ collapse is great news for the NBA

Analyzing if Warriors should select Deni Avdija with No. 2 pick In 48 games (18 starts) this season, Burks averaged 16.1 points on 40.6% shooting (37.5% from 3-point range), 4.7 rebounds and 3.1 assists in 29 minutes per game.

Robinson started all 48 games he’s played, and averaged 12.9 points on 48.1% shooting (37.6% from 3-point range), 4.7 rebounds and 1.8 assists in 31.6 minutes per game.