Simplify (24w^4+14w^3-4w^2+10w)/(2w)