-5x divided by x, how come that equals -5, but not -5x, how do the x's cancel out?

example:

How many fives are there in 100?
answer:
100/5 = 20 of them

now our problem (ignoring negative sign)
How many x es are there in 5 x?
answer
5x/x = Five of them.