Answer:
Let's assume that Connor has x vanilla cookies.
According to the problem, he has 2 times as many chocolate cookies as vanilla cookies, which means he has 2x chocolate cookies.
The total number of cookies is given as 27, so we can set up an equation:
x + 2x = 27
Simplifying, we get:
3x = 27
Dividing both sides by 3, we get:
x = 9
Therefore, Connor has 9 vanilla cookies and 2(9) = 18 chocolate cookies.