News for hackers. Stuff that matters.
Re:“The following surprisingly difficult problem was given t... by thom on Tuesday October 21, 2014 @06:10AM (#8486681)
Ha, yes. Reading the question, and indeed giving it any thought at all, were always the things that held me back in maths at school. Using cents and requiring > 0:

  user> (run* [q] (fresh [morning afternoon a b c d e f] (fd/in morning afternoon (fd/interval 0 3500)) (fd/in a b c d e f (fd/interval 0 26)) (fd/eq (< afternoon morning) (> morning 0) (> afternoon 0)
																		    (= (+ a b) 10) (= (+ c d) 16) (= (+ e f) 26) (= (+ (* morning a) (* afternoon b)) 3500) (= (+ (* morning c) (* afternoon d)) 3500) (= (+ (* morning e) (* afternoon f)) 3500)) (== q [morning afternoon a b c d e f])))

  Spoiler warning, scroll right:                                                    ([375 125 9 1 6 10 1 25])
Re:“The following surprisingly difficult problem was given t... by alsocasey on Tuesday October 21, 2014 @11:18AM (#8487758)
The only odd thing about this answer is that farmer 1 apparently decided to lower prices after selling 9 of his 10 chickens in the morning...
Re:“The following surprisingly difficult problem was given t... by patio11 on Tuesday October 21, 2014 @06:15AM (#8486689)
n.b. Correct answer. Took me 20 minutes with paper and pen: 5 minutes of noodling and 15 of constructing a table and winnowing it quickly using an insight about relatively prime numbers.
Re:“The following surprisingly difficult problem was given t... by thom on Tuesday October 21, 2014 @06:11AM (#8486682)
And using computers instead of my head, that was another pitfall.