x+y=5
=>y=5-x
|x+1|+|y-2|=4
=>|x+1|+|5-x-2|=4
=>|x+1|+|x-3|=4
TH1: x<-1
=>-x-1+3-x=4
=>-2x+2=4
=>-2x=2
=>x=-1(loại)
TH2: -1<=x<3
=>x+1+3-x=4
=>4=4(luôn đúng)
TH3: x>=3
=>x+1+x-3=4
=>2x-2=4
=>2x=6
=>x=3(nhận)
Khi x=3 thì y=2
Khi \(x\in\left\{-1;0;1;2\right\}\) thì \(y\in\left\{6;5;4;3\right\}\)