MINNEAPOLIS -- The Minnesota Timberwolves have agreed to a trade with Oklahoma City for guard Kevin Martin that also allowed them to land swingman Corey Brewer in free agency.

The Wolves agreed to terms with Martin on a four-year contract worth nearly $30 million last week. Rather than sign him outright, they decided on Wednesday to execute a sign-and-trade deal with the Thunder to help them free up more cap room to land Brewer. Luke Ridnour is headed from Minnesota to Milwaukee in the three-team trade, according to a person with knowledge of the deal. The person requested anonymity because the deal has not been officially announced.

With the extra cap room, the Wolves agreed to terms with Brewer on a three-year, $15 million contract. The parameters were first reported by ESPN.

Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

More From KSOO-AM / ESPN Sioux Falls