Thanks ehild! I have got the right answer now.The problem is that you can not make the force of friction equal to mu mg, if A does not move. It is static friction then, what you do not know. Ignore the equation for aA. T is not equal to 45.
One more thing, how much time should a problem like this would require? I got this question in my test paper and was totally clueless at that time.