Brain-Teaser 350: Catering crisis
From The Sunday Times, 21st January 1968 [link]
The caterer at our Village Hall is in a quandary, as the Hall has been double-booked for next Saturday — by the Cricket Club and the Darts Club.
Unfortunately the matter cannot be resolved until the return of the Vicar on Saturday morning. He is quite unpredictable in such decisions, and the caterer must order the food by Friday.
The Cricketers want 100 sausage rolls and 60 meat pies; the Darts Club wants 50 sausage rolls and 90 meat pies.
The caterer is empowered to spend exactly £6.00. He buys sausage rolls at 3p and sells at 4p; meat pies cost him 5p and sell at 8p. Any left-overs are disposed of at a loss to a local prep school, which pays 2p per sausage roll and 3p a pie.
What should the caterer order so that he makes the best safe profit no matter which club gets the booking? And what will that profit be?
This puzzle is included in the book Sunday Times Brain Teasers (1974). The puzzle text is taken from the book.
[teaser350]
Jim Randell 8:59 am on 21 May 2024 Permalink |
This Python program looks at possible orders of sausage rolls and pies that cost the caterer exactly 600p, and then the amount made if these supplies are available for each club, and records the minimum profit made in each case. We then look for the largest of these profits to find the answer to the puzzle.
It runs in 58ms. (Internal runtime is 240µs).
Run: [ @replit ]
Solution: The caterer should order 80 sausage rolls and 72 pies. Whichever club arrives he will make a profit of 236p.
In the originally published puzzle pre-decimal currency was used and the numbers were different:
And the answer is: 160 sausage rolls, 144 pies. The profit is 472 pence = £1, 19s, 4d.
LikeLike
Frits 10:35 am on 21 May 2024 Permalink |
This program doesn’t assume that the caterer will spend exactly 600p.
LikeLike
Frits 10:32 am on 22 May 2024 Permalink |
Assuming that the caterer will spend exactly 600p and that the caterer will order a sensible amount of sausages S (50, 55, 60, …, 95, 100) the profit (if the cricketers get the booking) can be expressed as: 2.2 * S + 60 and 460 – 2.8 * S if the darters get the booking.
As the first function is increasing and the latter is decreasing for S the safe profit will be maximized if 2.2 * S + 60 = 460 – 2.8 * S or S = 80.
LikeLiked by 1 person
Lise Andreasen 2:17 am on 22 May 2024 Permalink |
Interesting.
I approached it differently and arrived at 100 sausage rolls and a profit of 280.
https://onlinephp.io/c/47cce
LikeLike
Lise Andreasen 2:23 am on 22 May 2024 Permalink |
Oh, hang on. Read the puzzle incorrectly.
LikeLike
Lise Andreasen 2:25 am on 22 May 2024 Permalink |
Yeah. I get the correct result now.
https://onlinephp.io/c/37baa
LikeLike
Lise Andreasen 2:27 am on 22 May 2024 Permalink |
Read the numbers in an early version of this page?
LikeLike
Jim Randell 12:44 pm on 24 May 2024 Permalink |
Sorry. For a short while the numbers were mixed up between the original puzzle and the version published in the book. The puzzle text now reflects the version from the book, rather than the originally published version.
LikeLike