Let f be a function such that f(x) + f(2x + y) + 5xy = f(4x - y) - x^2 + 5xy - 8x + 17y + 1 for all real numbers x and y. Find f(10).