Answer:
Mathias can leave exactly in 5 minutes.
Step-by-step explanation:
the first minute he will stand meters away from the exit door, the second minute he will walk half way to the door, the third minute he will walk half the distance of the half way, the fourth minute will also divide the half distance remaining and the fifth minute he will walk and stand at the door before finally existing.