Step 1: Set up the conditional distribution.
$X$ and $Y$ are iid with $P(X=x)=p(1-p)^x$. We want $E(X \mid X+Y=n)$ for a fixed total $n$.
Step 2: Find the conditional pmf directly.
For $0 \le k \le n$,
\[ P(X=k, Y=n-k) = p(1-p)^k \cdot p(1-p)^{n-k} = p^2(1-p)^n. \]
This does not depend on $k$: every split of the total $n$ has the same joint probability.
Step 3: Normalize to get the conditional pmf.
There are $n+1$ possible values of $k$, so
\[ P(X=k \mid X+Y=n) = \frac{1}{n+1}, \quad k=0,1,\ldots,n. \]
So given the total is $n$, $X$ is exactly uniform over $\{0,1,\ldots,n\}$.
Step 4: Compute the conditional mean.
\[ E(X\mid X+Y=n) = \frac{0+1+\cdots+n}{n+1} = \frac{n}{2}. \]
Step 5: Write this back in terms of $X+Y$.
\[ E(X\mid X+Y) = \frac{X+Y}{2}. \]
Matches option (A), rules out (D).
Step 6: Rule out (B) and (C).
$X$ is uniform on $\{0,\ldots,n\}$ given the sum, not always equal to $Y$, so (B) fails. Direct summation gives $P(X=Y)=p/(2-p)$, not matching (C).
Final Answer:
\[ \boxed{E(X\mid X+Y)=\dfrac{X+Y}{2}} \]