Let us assume Leo starts from a point (0,0)
Since the total length of the race is 5 km, he will be at (5,0) at the end of the race.
It is given that, he is at the mid point of the race.
Mid point formula is :

Present coordinate :

He still needs to run 5-2.5 = 2.5 km