The task is to generate the correct answer for a given math problem.
Q: Problem: one fourth of a solution that was 8 % sugar by weight was replaced by a second solution resulting in a solution that was 16 percent sugar by weight . the second solution was what percent sugar by weight ?
A:
40 %