calculating and drawing Edgeworth box (microeconomics)