Do the trick
Meaning: If something does the trick, it solves a problem or has the result you want.
Example: If I've got a headache, a couple of aspirins usually do the trick.
Example: If I've got a headache, a couple of aspirins usually do the trick.