Let a and b be real numbers such that (a^2 + 1)(b^2 + 4) = 14ab + 21. Find the largest possible value of a^2 + b^2.