The problem at hand is specifically to find the inverse of a matrix using Gaussian elimination modulo 29. I am familiar with the process of regular Gaussian elimination and modular arithmetic but not the combination of the two. The matrix you are given is:
$$A=\begin{pmatrix} 12 & 3 & 23 \\ 28 & 1 & 2 \\ 11 & 0 & 7 \end{pmatrix}$$
I first start out the way I would when doing a normal Gaussian elimination to find the inverse by writing out the following matrix:
$$A=\begin{pmatrix} 12 & 3 & 23 & 1 & 0 & 0 \\ 28 & 1 & 2 & 0 & 1 & 0\\ 11 & 0 & 7 & 0 & 0 & 1 \end{pmatrix}$$
From here, I first tried solving it how I would normally and then taking the elements modulo 29 at the end but unfortunately you end up with fractions at the end. After that I've tried working with only integers and tried to reduce numbers using modulo 29 as I go but haven't found success and I'm not sure if that is how you're supposed to do it. My question more generally would be how you go about Gaussian elimination modulo p for any prime number. Thanks in advance!