Three friends were eating chocolate chip cookies after school. Nacy ate four less than two times the amount of cookies that Kate ate. Avery ate two times the amount of cookies that Nancy ate. If the girls ate a total of 16 cookies, how many did each girl eat?