The judgment of the court shall define and designate the true boundary between the two counties, and shall direct that it be marked in such manner as the court deems proper, and the cost of the marking shall be borne by the two counties equally, or in such proportions as the court directs.