<|system|>
What is the value of $x^2+y^2-z^2+2xy$ when $x=-3$, $y=5$, and $z=-4$?</s>.
<|user|>
Can you answer based on context?
<|assistant|>
To solve this problem, I need to substitute the given values of $x$, $y$, and $z$ into the expression and simplify it using the order of operations. So, I have $(-3)^2+5^2-(-4)^2+2(-3)(5)$. I can start by evaluating the exponents: $9+25-16-30$. Then, I can combine the terms from left to right: $34-16-30$. Finally, I can subtract and get the answer: $-12$. 