According to the given information:
Total number of eyes = 30
Total number of feet = 44
Each pig has two eyes and four feet, while each peacock has two eyes and two feet. So, we can set up the following system of equations:
2p + 2e = 30 (total number of eyes)
4p + 2e = 44 (total number of feet)
Solving this system of equations, we get:
p = 6 (number of pigs)
e = 9 (number of peacocks)
Therefore, there are 6 pigs and 9 peacocks in the cage.