One day, Master Bayi and Two Generations found some gold coins.

After the second exchange, among the 150 pieces of love between the two generations, 90 pieces belong to Bayi and 60 pieces belong to himself. So Pakistan still has 420 yuan, and the two of them have 150+420=570 yuan.

After the first exchange, there are 120 pieces and Pakistan has 450 pieces.

Let a be x and Ba be y, then

X/2+y/5= 120 and x/2+4y/5=450, so x=20 and y=550.

150-20= 130

So the two generations of love originally had 20 gold coins. After two exchanges, he added 130.