Not too bad ...
Here's the process - do the addition and subtraction first.
mg - T = ma
The way you read this is: "+mg + (-T) = ma"
on the LHS you have a term "mg" that you don't want.
there is no minus sign in front of it so the operation you are looking for is subtraction.
whatever you do to one side you have to do to the other side - picture: moving weights around on a see-saw while keeping it balanced ... if you remove a weight from one side, you also have to remove the same weight from the other.
subtract mg from both sides:
(mg-T)-mg = (ma)-mg
gives you:
-T = ma-mg
... there is nothing more added or subtracted here.
... you want a +T on the LHS and what you have is a -T ... which is (-1)xT ... so there is a -1 you don't want.
... since the -1 is multiplied in, the operation you want is devision: dividing both sides by -1 (is the same as multiplying by -1 but hey ho):
-(-T)=-ma+mg
gives you (tidying up):
T = m(g-a)
Now you can finally put the numbers in - by waiting you get an easier calculation.
With more complicated situations, the payoff is even bigger.
You may like to peruse:
http://www.scribd.com/doc/149266846/Math-Bits
... sadly it's unfinished and has glaring typos ... but the concepts usually help.
At some point I'll get around to finishing and polishing.
[edit] @BvU: I believe she got it quite early on but is attempting to learn a different, more systematic, way of thinking about the problem. Otherwise I wouldn't have handed it over like this :)
There is more than one way to skin a cat - and we benefit from knowing several ways.