The distance is 6 units.
On the x axis, the distance between A and D is 2 -4 or -4 +2 = -6. Mind you, distance is never negative so always use the absolute value, which is 6.
Ans = 6 units
Happy to help. Marking me the brainpower would really be appreciated.