X_i (0 &lt; X_i &lt; E) on the number line and can sell FJ as much as F_i (1 &lt;= F_i &lt;= 100) pounds of feed at a cost of C_i (1 &lt;= C_i &lt;= 1,000,000) cents per pound. Amazingly, a given point on the X axis might have more than one store.  FJ starts at location 0 on this number line and can drive only in the positive direction, ultimately arriving at location E, with at least K pounds of feed. He can stop at any of the feed stores along the way and buy any amount of feed up to the the store's limit