The solution of 8x+1≡5(mod12) is x≡a(modm) for some positive integers m≥2 and a
I guess you are trying to ask what is the values of m and a.
8x+1≡5(mod12)8x≡4(mod12)8x≡16(mod12)x≡2(mod12)