.
1. Olivia donated 24 dollars, according to the condition.
Hence, Megan donated the rest 100-24 = 76 dollars.
2. These 76 dollars are what Megan had initially, according to the condition.
Hence, Megan had initially 76*5 = 380 dollars.
3. After donating, Megan had 380 - 76 = 304 dollars.
After donating, Olivia had 32 dollars more than Megan (had after donating), i.e. 304 + 32 = 336 dollars.
4. To these 336 dollars, add that 24 dollars Olivia donated to get 336 + 24 = 360 dollars. It is what Olivia had before donation.
5. Thus we found that before donation Megan had 380 dollars, while Olivia had 360 dollars.
Hence, their total was 380 + 360 = 740 dollars before donation.
It is the solution as it should be.
I mean as it should be presented.