To rewrite the equation so that it solves for z, simply isolate z.
[tex] -10=xy+z\\ -10-xy=z\\ z=-xy-10 [/tex]