Notăm:
h - numărul hamsterilor;
p - numărul papagalilor.
Schematic, avem:
[tex]\it h+p=6 \Rightarrow p=6-h\ \ \ \ \ (1)\\ \\ 4h+2p=16|_{:2} \Rightarrow 2h+p=8 \Rightarrow p=8-2h\ \ \ \ \ (2)\\ \\ (1),\ (2) \Rightarrow 6-h=8-2h \Rightarrow -h+2h=8-6 \Rightarrow h=2\ \ \ \ \ (3)\\ \\ (1),\ (3) \Rightarrow p=6-2 \Rightarrow p=4[/tex]