Factor w u-24w+3u-8w^2