Ok so I remember this trick that you could sometimes use to solve $Mx = y$ for $x$, given $M$ and $y$. It did not invovle computing $M^{-1}$. Can you remind me what it was?
The only thing I remember is that you would do something to the equation $Mx = y$ such that you would get a new equation $$M' x = y'$$ where $M'$ and $y'$ are different from before. And then, it turns out that $M'$ is always invertible, and then you could find the inverse.
What was that trick?
EDIT: I know there are million times more efficient ways to do this that does not involve finding inverses. Not asking about that.