do the trick

  1. (idiomatic) To work; to be successful; to solve a problem; to be sufficient or adequate to fulfill a purpose.
    • 1885, H. Rider Haggard, King Solomon's Mines, ch. 3:
      [J]ust that little extra second did the trick.
    • 1921, Victor Appleton, Tom Swift Among The Fire Fighters, ch. 24:
      "It was the chemicals from this young man's airship that did the trick!"
    • 2002 April 15, Laura Bradford, "Three Ways To Give Nature A Helping Hand," Time:
      Sometimes hormone therapy does the trick, but many infertile couples require more sophisticated manipulation of sperm and eggs.