The zoo had some lions and some parrots.The supervisor counted 15 heads and 50 legs. How many lions were there?

A) 9

B) 10

C) 12

D) 13

Let,

lion= x and Parrot= y 

Lion and parrot have one head so:

x+y= 15 ….. ( i )

Lion has four legs and Parrot has two legs so:

4x+2y= 50 ….( ii )

multiply equation ( i ) by two and Subtraction from ( ii ) 

4x+2y – 2x-2y= 50-30

⇒ x= 4 

so,

lion = 10