Adeline and Mandy had some money in the ratio 3:7. After Adeline receive $92 and Mandy receive $40, both girls had an equal amount money. How much money did they have at first?

a/m = 3/7

a+92 = m+40