Education systems and the formation of societal consensus on justice