Explanation:
x = number pain cookies
y = number raisin cookies
x/y = 2/3
x/(y+6) = 1/3
x = (y + 6)/3
x = 2y/3
therefore,
x = x = (y + 6)/3 = 2y/3
y + 6 = 2y
6 = y
x = 2y/3 = 2×6/3 = 2×2 = 4
so, he made originally 4 + 6 cookies, and then he made 6 more raisin cookies, so, he made 4 + 6 + 6 = 16 cookies.