Factor a^2-14ab+24b^2