The distance: use absolute value 
Between x and 8: x-8
The distance between x and 8: | x-8 |
“is no more than” means it can be that or be less than that, so use ≤
The distance between x and 8 is no more than 4
 | x-8 | ≤ 4
        
             
        
        
        
Answer:

Step-by-step explanation:
Probability (P) is calculated as
P = 
The first required outcome is a red sweet from a total of 3 + 5 = 8
P( red) = 
There are now 2 red left and a count of 7, since 1 has been eaten, thus
P( second red ) = 
P( red and red ) =  ×
  ×  =
 =  =
 = 