-512+(-34)
When you add negatives, all you're basically doing is adding the two negatives together as if there was no negatives, and then add a negative at the end.
So, you do :
512 + 34 = 546
Then, add your negative! :)
-512 + (-34) = -546
~Hope I helped!~