Two quadratic polynomials $A(x)$ and $B(x)$ have a leading term of $x^2$. For some real numbers $a$ and $b$, the roots of $A(x)$ are $1$ and $a$, and the roots of $B(x)$ are $6$ and $b$. If the roots of $A(x) + B(x)$ are $a + 3$ and $b + \frac{1}{2}$, then compute $a^2 + b^2$.

Let's think step by step and output the final answer within \boxed{}.
user