This is a simple but continuous probability distribution, the uniform distribution on the interval [2,7].
The random variable can only assume values between 2 and 7
The probability of any specific number is 0, e.g. P(X=.5)=0
and the probability that X falls in any interval is equal to (1/5)*length of the interval.
The answer to the first part is 2/5 and the answer to the second question is 3.