The past tense of do the trick is did the trick.
The third-person singular simple present indicative form of do the trick is does the trick.
The present participle of do the trick is doing the trick.
The past participle of do the trick is done the trick.