Why does 5x/6x^2 become 5/6x? How did x-x^2 become an x on the bottom? Thanks!

You divide numerator and denominator both by x.

5x/x = 5
6x^2/x = 6x

5x/6x^2 = 5/6x

Form the above data, I cannot answer your second question.