Some amount of a 120 gram 16% solution was taken out and replaced with pure alcohol. The result was a solution of 30% alcohol. How many grams were taken out?