Adding some numbers using PHP
<p>Here is a situation:</p>

<pre><code>race 1 = 7
race 2 = 3
race 3 = 1
race 4 = 2
race 5 = 6
race 6 = 2
race 7 = 7
race 8 = 3
</code></pre>

<p>The smaller the number the better since these are race positions. race number 1 MUST be added, regardless of it's magnitude and must be added to any 5 others that are selected on merit. So  basically I want to use PHP to add up 6 of the best races out of the 8 and the 6 must include 1, regardless of whether it is among the best</p>

<p>I thoughtn of sorting the numbers by having them sorted from lowest to highest and adding the first 6. The problem is that if race 1, is not among the best 6, then this cannot work. </p>

<p>Any help will be appreciated, I am still thinking so I cannot provide anything in terms of what i have tried as everything is still at thought level! </p>
