3. Real numbers $x, y$ satisfy $x \geqslant y \geqslant 1$ and $2 x^{2}-x y$ $-5 x+y+4=0$. Then $x+y=$ $\qquad$
3.4 .

From the given equation, we know that $2 x^{2}-5 x+4=y(x-1) \leqslant x(x-1)$, which leads to $x^{2}-4 x+4 \leqslant 0$, or $(x-2)^{2} \leqslant 0$. Therefore, $x=2$.
Substituting $x=2$ into the given equation yields $y=2$, hence $x+y=4$.