\( \definecolor{colordef}{RGB}{249,49,84} \definecolor{colorprop}{RGB}{18,102,241} \)
Find the values of \(x\) and \(y\) that make the two matrices equal:$$ \begin{pmatrix} x & 7 \\ -2 & y+1 \end{pmatrix} = \begin{pmatrix} 5 & 7 \\ -2 & 3 \end{pmatrix} $$
\(x = \)
\(\quad\) and \(\quad\) \(y = \)