According to the meaning of the equation:
X+2X+30=480
3X=480-30
3X=450
x = 450 \3
X= 150
Hen: 2X+30=2X 150+30=330.
Answer: There are only 150 cocks and 330 hens.