Question 1023763
Let {{{ x }}} = the amount you initially have in the bank
{{{ 5x }}} = the amount you initially have in the safe
--------------
Later the bank has:
{{{ x + 225 }}}
and the safe has:
{{{ 5x - 225 }}}
-----------------
And that results in:
{{{ x + 225 = 8*( 5x - 225 ) }}}
{{{ x = -8*225 - 225 + 40x }}}
{{{ 39x = 9*225 }}}
{{{ x = 2025 / 39 }}}
{{{ x = 51.923 }}}
{{{ 5x = 259.615 }}}
----------------
You have $ 51.92 in the bank and 
$ 259.62 in the safe, initially
-----------------
check:
Take $225 out of safe, The safe has:
{{{ 259.62 - 225 = 34.62 }}}
Put the $225 in the bank. The bank has:
{{{ 51.92 +225 = 276.92 }}}
----------------------
The bank now has 8 times more than the safe
{{{ 276.92 = 8*34.62 }}}
{{{ 276.92 = 276.96 }}}
error due to rounding off, I think