Greatest common factor of (3,10) = 1, and therefore the inverse of 3 exists, which means that x = 3mod 10.

I don't understand how to get the answer for that very last bit. So what if the inverse exists? Does that mean you simply divide 9 by the number in front of the x? Why not the 10 as well? What if the inverse didn't exist?