For continuity at \( x = 2 \), the left-hand limit (as \( x \to 2^- \)) must equal the right-hand limit (as \( x \to 2^+ \)).
1. Left-hand limit at \( x = 2 \):
For \( x<2 \), \( f(x) = A + x \). Thus,
\[
\lim_{x \to 2^-} f(x) = A + 2
\]
2. Right-hand limit at \( x = 2 \):
For \( x \geq 2 \), \( f(x) = 1 + x^2 \). Thus,
\[
\lim_{x \to 2^+} f(x) = 1 + 2^2 = 1 + 4 = 5
\]
For continuity, these two limits must be equal:
\[
A + 2 = 5 \quad \Rightarrow \quad A = 3
\]