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

=]

you need to start with some factoring

the numerator factors to
(2w+7)(5w+2) or try other combo's