Using the determinant and cofactors is certainly one way to find an inverse matrix and, in fact, that was the first method I learned. But I think it is easier to use "row-reduction".
Write the given matrix and identity matrix next to each other:
Now use row reduction to reduce your matrix to the identity matrix while applying those same row operations all the way across both matrices. The same row operations that change your matrix to the identity matrix will change the identity matrix to the inverse of the original matrix.
For example, would the inverse be:
Edit - This does not make sense at all, ignore