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.


电子新闻

订阅我们的新闻通讯,了解世界各地自动化领域的新闻和趣事。

订阅
放大–The Pepperl+Fuchs Magazine

浏览我们的在线杂志!从中发现精彩的成功案例、应用报告、访谈内容和地区新闻。