$y(2\cos x-\sin x+4)=\cos x+2\sin x+3$
$\to (y+2)\sin x+(1-2y)\cos x=4y-3$ (*)
Để phương trình (*) có nghiệm:
$(y+2)^2+(2y-1)^2\ge (4y-3)^2$
$\to y^2+4y+4+4y^2-4y+1\ge 16y^2-24y+9$
$\to 11y^2-24y+4\le 0$
$\to \dfrac{2}{11}\le y\le 2$
Do $y\le 2$ nên $\max y=2$