do the trick

do the trick  {v. phr.},  {informal}
To bring success in doing something; have a desired result.
Jim was not passing in English, but he studied harder and that did the trick.
The car wheels slipped on the ice, so Tom put sand under them, which did the trick.
Compare: TURN THE TRICK.
Categories: success {informal} {v. phr.}