A farmer raises chickens and ducks on his farm. The ratio of chickens to ducks is 3 to 2. If the farmer has a total of 45 birds on his farm, how many chickens does he have?