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:
[tex]\frac{1}{2} * (T - 52) = \frac{T - 52}{2}[/tex]
Which means he is left with another half of what was left, that is, [tex]\frac{T - 52}{2}[/tex]
Of the money remaining, John put 4/13 into checking account.
This means that he is left with 9/13 of [tex]\frac{T - 52}{2}[/tex].
We are told that this is equivalent to the last remaining $180 that John left to charity.
=> [tex]\frac{9}{13} * \frac{T - 52}{2} = 108[/tex]
Hence:
[tex]\frac{9(T - 52)}{13 * 2} = 180\\\\9(T - 52) = 180 * 13 * 2\\\\9(T - 52) = 4680\\\\T - 52 = \frac{4680}{9} = 520\\\\[/tex]
=> 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.