The past tense of fail to work out is failed to work out.
The third-person singular simple present indicative form of fail to work out is fails to work out.
The present participle of fail to work out is failing to work out.
The past participle of fail to work out is failed to work out.