6 – x ≥ 0

6 ≥ x

2x = 6 – x

3x = 6

x = 2

6 – x ≤ 0

6 ≤ x

2x = -(6 – x)

2x = -6 + x

x = -6

nesplňuje podmínku 6 ≤ x

x = 2