Let's assume Alice has A dollars and Bob has B dollars.
According to the first condition, if Alice receives n dollars from Bob, Alice will have A + n dollars, and she will have 4 times as much money as Bob: A + n = 4B.
According to the second condition, if Alice gives n dollars to Bob, Alice will have A - n dollars, and she will have 8 times as much money as Bob: A - n = 8B.
To find the ratio of the amount of money Alice has to the amount Bob has, we need to find A/B.
Now, we can solve the system of equations:
A + n = 4B A - n = 8B
Adding the two equations, we get:
2A = 12B A = 6B
Now we know that the ratio of the amount of money Alice has to the amount Bob has is 6:1, or simply 6. Therefore, Alice has 6 times the amount of money Bob has.