Wiktionary
do the trick
vb. (context idiomatic English) To work; to be successful; to solve a problem; to be sufficient or adequate to fulfill a purpose.
Usage examples of "do the trick".
Luckily he now had Fang Yi's message, which should do the trick just as well.
And there, a cabinet for my videotapes and laser disks, and again, we should find something suitable-a painted Oriental press would do the trick.