Answer:
John had $572 in his savings account.
Step-by-step explanation:
Let the total amount John took from his savings account be T.
He spent $52. That means he has $(T - 52) left.
He then spent 1/2 of what was left on presents for his friends. That is:
Which means he is left with another half of what was left, that is,
Of the money remaining, John put 4/13 into checking account.
This means that he is left with 9/13 of .
We are told that this is equivalent to the last remaining $180 that John left to charity.
=>
Hence:
=> T = 520 + 52 = $572
Hence, John took $572 from his savings account. Since this is all he had in his savings account, John had $572 in his savings account.