Let a and b be the roots of the equation x^2 - mx + 2 = 0. Suppose that a + 1/b + ab and b + 1/a + ab are the roots of the equation x^2 - px + q = 0. What is q?