Two athletes arrive at the finish line of a race in moments $X, Y$ independent. The first comes at a casual time $X$ between $16$ and $17$. The second comes at a casual time $Y$ between $16.15$ and $17$. Find:
$-$ The probability that $X \le Y$
$-$ The probability that $|Y-X|\le 0.15$
SOLUTION: $$X[16;17]$$ $$Y[16.15;17]$$ $$P(X \le Y) = \frac{60\cdot45-\frac{45^2}{2}}{60\cdot45} = \color{red}{0.625}$$ $$P(|X-Y|\le0.15)= \frac{60\cdot45-\frac{30^2}{2}-\frac{45^2}{2}}{60\cdot45} = \color{red}{0.458}$$ The results should be corrected, but i don't understand how he came to the following formulas (this solution is That of Professor), and i'd like to know if there is another method to solve these two questions. Thanks