Instructions: The task is to generate the correct answer for a given math problem.
Input: Problem: in a group of cows and chickens , the number of legs was 12 more than twice the number of heads . the number of cows was :
Output:
6