Chickens and Rabbits

There is a total of 16 chickens and rabbits in a farm. The total number of legs (chicken and rabbits) is equal to 50. How many chickens and how many rabbits are there?


Please help.
I need a complete solution.