The smallest value will be obtained by giving x the smallest possible value while y gets the largest possible value. The smallest value for x = 7. This means that y will have to be less than or equal to 3 (so that x + y <11), but we want the largest value of y which is 3.
The difference, x - y will be 4.