As each horse race is run the licensee shall be authorized to deduct from the total sum contributed on all horses as first winners eighteen and one-quarter percent and the balance remaining on hand after deducting such percentage shall be paid out to the holders of certificates on the winning horse equally in proportion as the amount contributed by such person bears to the total amount contributed toward the entry of all horses in such race to run first.
SDCL 42-7-78