Bucks get Caleb Martin who can start or ideally be a backup sf as a solid 3/D player who hasn’t gotten much opportunity and is on a bad contract. Mavericks get off Martin’s contract and get gtj who’s also a solid floor spacer to put alongside cooper flag, they give up 2 seconds to get off Martin’s contract which would help them as a 2nd apron team for the coming years (his contract expires in 3 years). Win/win