Let the money that Mandy has at first be x.Then, according to the given situation, Zoe would have (x - 304).
After Mandy gave $732, he is now left with (x - 732) and $732 is given to Zoe, he will now have (x - 304 + 732)
= (x + 428), which is 3 times as that of money left with Mandy.
Therefore,
x + 428 = 3(x - 732)
x + 428 = 3x - 2196
2x = 2624
x = 2624/2
x = 1312
So, at first Mandy had $1312 with him.