Serviceline Industrial Sensors
Serviceline Explosion Protection

Did You Find Out? Get the Answer to the Riddle of E-News Issue No. 3, July 2024

2024-07-08

Black and White

black and white sheep

A farmer only keeps sheep and horses on his farm. All his animals are either white or black. He has 60 black horses, 100 white animals, and twice as many sheep as horses. 120 animals are either black or horses, but not black horses.

How many animals live on the farm?


Solution

If the farmer has twice as many sheep as horses and H is the number of horses, the farmer has 2H sheep and therefore a total of 3H animals. The 120 animals that are either black or horses, but not black horses, can only be black sheep or white horses. If BS is the number of black sheep, then there are 120 – BS white horses and 60 + BS black animals.

The farmer therefore has a total of 3H = 100 + 60 + BS animals, where 100 is the number of white animals, 60 is the number of black animals, and BS is the number of black sheep. In addition, the following equation results for the number of horses: H = 120 – BS + 60, i.e., the number of horses is equal to the number of white horses plus the number of black horses.

If you add the two equations together, SS falls out and you get H = 85. So there are 3H = 255 animals living on the farm.


e-news

Subscribe to our newsletter and receive regular news and interesting information around the world of automation.

Subscribe
amplify–The Pepperl+Fuchs Magazine

Discover our online magazine! Exciting success stories, application reports, interviews, and regional news are awaiting you.