Can anyone explain for me how:

-24x^6y^7

---------------

18x^-3y^9

becomes

-4x^9

--------

3y^2 ?

Sorry if I am using this board as a place to ask about maths.......If you have any good link to some good maths questions forum, then I'd be very glad to have it.