Call x y z respectively are bag 1, bag 2 ,bag 3 ( x y z > 0)
We have:
y = 2/3 z => y/2 = z/3 = y/14 = z/21
The ratio of x and z is 3/7 => x/3 = z/7 => x/9 = z/21
Apply an equal quality range ratio. we have:
x/9 + y/14 + z/21 = 132 = x+y+z / 9 + 14 + 21 = 132/ 44 = 3
=> x = 27$
=> y = 42$
=> z = 63$