Let d be deer (4 legs) and p be peacocks (2 legs). d+p=80. 4d+2p=200. From the first equation, d=80-p. Substitute into the second: 4(80-p)+2p=200 => 320-4p+2p=200 => 120=2p => p=60. There are 60 peacocks.