x is greater then or equal to 12

x is less then or equal to 2

midpoint between 12 and 2 is 7 ... distance from 7 to either 2 or 12 is 5

-5 is less then p and p is less then 2midpoint between -5 and 2 is -1.5 ... distance from -1.5 to either -5 or 2 is 3.5