The bake sale only sold two items. Cookies cost $2 and mini pies cost $5. Josie bought twice
as many cookies as pies and spent a total of $27. How many cookies did she buy?