Hi ^^

This question asks me to compute the cdf of Y from this pdf :

f(y) { y/25 for 0 =< y < 5 ; (2/5) - (y/25) for 5 =< y =< 10 ; 0 for otherwise }

After I integrate the function (because F'(x) = f(x)), I got:

F(y) { 0 for y<0 ; y^2/50 for 0 =< y < 5 ; (2y/5) - y^2/50 for 5=<y=<10 ; 1 for y => 10}

this cdf is weird because if i plug 10 in, like (2(10)/5) - (10)^2/50) i got 2 instead of 1 . I don't understand, would someone like to explain to me thank you very much ^^