divide:

(39w+ 14 + 10w squared) / 72+ w

=]