do the trick
Also, turn the trick. Bring about a desired result, succeed. For example, One more turn with the wrench should do the trick, or Bill wanted to finish all the errands in one day but he couldn't quite turn the trick. The first expression dates from the early 1800s; the variant, from the first half of the 1900s; should not be confused with turn a trick.
Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.