do the trick
US /duː ðə trɪk/
UK /duː ðə trɪk/

1.
to achieve the desired result; to be effective
:
•
A strong cup of coffee should do the trick to wake me up.
•
If you need to fix that loose screw, a bit of super glue might do the trick.
to achieve the desired result; to be effective