The past tense of take great pains is took great pains.
The third-person singular simple present indicative form of take great pains is takes great pains.
The present participle of take great pains is taking great pains.
The past participle of take great pains is taken great pains.