Each sheep has 4 legs and each chicken has 2 legs. If I count 50 heads and 140 feet total, how many sheep are there?​

Each sheep has 4 legs and each chicken has 2 legs If I count 50 heads and 140 feet total how many sheep are there class=