Section 25. The apportionment of the total revenues accruing from the sale of lottery tickets or shares and from all other sources shall be as follows:—(a) the payment of prizes to the holders of winning tickets or shares which in any case shall be no less than forty-five per cent of the total revenues accruing from the sale of lottery tickets; (b) the payment of costs incurred in the operation and administration of the lottery, including the expenses of the commission and the costs resulting from any contract or contracts entered into for promotional, advertising or operational services or for the purchase or lease of lottery equipment and materials which in no case shall exceed fifteen per cent of the total revenues accruing from the sale of lottery tickets, subject to appropriation; and (c) the balance shall be used to fund budgeted aid to cities and towns as provided in section 18C of chapter 58, subject to appropriation.