The penalty sums provided for in sections 26-31 and 26-32 shall be assessed by the court and its clerk charged with the duty of collecting moneys arising from fines and forfeited bonds, and shall be paid over to the board of commissioners by the tenth day of the month following the month in which such sums are collected.