Suppose you have the following system of linear congruence
$2x+5y$ is congruent to 1 (mod6)
$x+y$ is congruent to 5 (mod6)
where $x,y \in \mathbb{Z}$
How would you obtain a general solution for this system. Also is there a way to determine whether the system is solvable or not?

$$2x+5y=6a+1, x+y=6b+5$$ where $a,b$ are arbitrary integers
$$3y=2x+5y-2(x+y)=6a+1-2(6b+5)=3(2a-4b-3)$$
$$\iff y=2a-4b-3$$
$$2x+5y+(x+y)=6a+1+(6b+5)\iff x+2y=2a+2b+2$$
$$\iff x=2a+2b+2-2y=2a+2b+2-2(2a-4b-3)=?$$