i do not know if i uderstand the question but i'll try:
money Fariq call them x
Edward money x+40
If Edward gives 1/5 of his money to Fariq => Fariq as x+ 1/5 Edward money(x+40)/5,
Fariq as x+(x+40)/5
i did not understand if Fariq has 7/8 of the money that now Edward. if so =>
FariqMoney[x]+donationEdward[(x+40)/5]=7/8EdwardMoneynow[(x+40)-(x+40)/5]
eq: x+(x+40)/5=7/8[(x+40)-(x+40)/5]
...perhaps... x=74,Fariq 74, Ed 74+40
tot 74+74+40
Edward has $40 more thanFariq. If Edward gives 1/5 of his money to Fariq. Fariq will have7/8 as much money as Edward. How much money do they have altogether.
2 answers
let the current amounts be e,f
e = f+40
After e gives 1/5 of his money to f,
(f + 1/5 e) = 7/8 (4/5 e)
e = 80
f = 40
e+f = 120
check: after e gives f 1/5 of $80 = $16,
e has $64, f has $56, which is 7/8 of $64
e = f+40
After e gives 1/5 of his money to f,
(f + 1/5 e) = 7/8 (4/5 e)
e = 80
f = 40
e+f = 120
check: after e gives f 1/5 of $80 = $16,
e has $64, f has $56, which is 7/8 of $64