4x+2(x+20)= 190
4x+2x+40= 190
6x= 150
x=25
25+20=45 (only)
Answer: 45 chickens and 25 pigs.
So the answer is: 45; 25.