I was trying to solve the problem in the title but couldn't. The solution was 1 or 13, but I couldn't go there. I am here:
Let's say d is gcd. Then $$d|5n+6,\quad d|7n-2\quad and\quad d|3*(7n-2) \quad lastly\quad d|5n+6+(3*(7n-2)) = d|26n $$ So ı can say $\quad d|26\quad or\quad d|n\quad$ but that's all.