Once upon a time, there was a merchant selling livestock in a market: hens, pigs, and ducks. Each hen cost 27 shillings. Each p*g cost 29 shillings. Finally, each duck cost 34 shillings.
Then there were three farmers coming to buy these animals in different trades:
* The first farmer bought some hens and pigs, but no ducks.
* The second farmer bought some pigs and ducks, but no hens.
* The third farmer bought some ducks and hens, but no pigs.
Nonetheless, each of them paid the same non-prime total price for each trade.
What would be the least possible total price, in shillings, for each farmer?