Section 22. The reasonable expenses and charges of partition proceedings, including examination of title and preparation of plan ordered by the court under section seventeen, and the fees of counsel, of the commissioners, and of all agents, guardians and other persons appointed to represent interests in accordance with section nine, shall be determined by the court, and in case of sale paid by the commissioners out of the proceeds; and in case of partition by division shall be paid by the petitioner, who shall be entitled to contribution from the parties to whom shares of the land are set off who take a vested, and not contingent, interest. Such contribution shall be in proportion to the interests of the parties unless the court finds a different proportion more equitable. Costs may also be awarded under section forty-five of chapter two hundred and fifteen. Execution may issue for said contribution and costs.