PHILADELPHIA (973espn.com) - According to the latest NFLPA figures, the Eagles had a little less than $1.7 million in cap space and needed to add 21 players in the draft and rookie free agency later this week to fill their 90-man offseason roster.

Even at this time of year when the top-51 rule is in effect, that's a math problem that even Howie Roseman and Jake Rosenberg couldn't complete.

That is, without changing the variables, something Philadelphia was able to do by reworking the contract of Pro Bowl right guard Brandon Brooks.

According to ESPN's Field Yates, the Eagles created just under $6.4M in space by converting Brooks' 2018 base salary into bonuses, dropping his cap number from $11.14M to $4.77M.

And that should be enough space to shoulder the extra $2M given to Super Bowl MVP Nick Foles as well as any of the rookies who will count against the top-51 after they are signed.

Brooks, who remains under contract through 2020, tied it directly to Foles:

-John McMullen covers the Eagles and the NFL for 973espn.com. You can reach him at jmcmullen44@gmail.com or on Twitter @JFMcMullen