The weights of two bags of candy, $A$ and $B$, have a ratio of $$5:3$$. If $$10$$ grams of candy were taken from bag $A$ and placed in bag $B$, their new ratio becomes $$7:5$$. What is the total weight of both bags?~\uline{~~~~~~~~~~}~ 
Overseas Competition->Knowledge Point->Word Problem Modules->Solving Problems Involving Proportions->Ratio Word Problems with Invariant Sums