Is this method correct?
$x^2=19 \mod 25, x^2=44 \mod 25, x^2=69 \mod 25, x^2=94 \mod 25, x^2=119 \mod 25, x^2=144 \mod 25$
Therefore, $x=12 \mod 25, x= 13 \mod 25$.
Or should I have to split $x^2 = 19 \mod 25$ into $x^2= 19 \mod 5, x^2 = 19 \mod 5$. $x^2= 19 \mod 5$ gives $x=2 \mod 5$, $x= 3 \mod 5$. By using $x=2 \mod 5 , x= 3 \mod 5$ I would arrive at the same $x = 12 \mod 25, x= 13 \mod 25$.
Using the second method, I found $x=5k+2$, $x=5k+3$. By substituting this in $x^2=19mod25$ I get $20k+4 = 19 mod 25$ which gives $4k = 3 mod 5$. Therefore, $k = 2$ which provides $x=12$. Similarly, when I substitute $x=5k+3$ in $x^2=19mod25$ I get $x=13$
Are both ways correct?