He must walk 2.5 m because the image formed in the mirror moves front as you ove towars it.
So if the amn walks 2.5 m away from it then the distance between him and the mirror is 2.5m whereas the image formed in the mirror is 2.5m away from the mirror.Thus 2.5 + 2.5 = 5m
Hopw this helps.