The Hornets get a good big on a decent contract to help shore up their promising young core. They also move on from bridges contract.
The Mavericks only do this if they trade AD. They get their pick back for next year to help in a rebuild around Flagg.