PLS if you answer right I’ll like and give stars PLSS

P(x)=2x^4-x^3+2x^2-k

P(x) divided by (x+1) has a remainder of 2

What is the value of k?