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.