A loaded elevator with very worn cables has a total mass of 1800 kg and the cavles can withstand a maximusm tension of 28000N a) What is the maximum upward acceleration for the elevator if the cables are not to brake? b) What is the answer to part a) if the elevator is taken to the moon where g=1.62m/s^2?

a) what is the equation? I tried T=ma and it didn't work. I should have gotten 5.76 m/s^2
b) would I use T=ma +mg?