A man covers a certain distance between his house and office on a Scooter.Having an average speed of 30 km/hr, he reaches office late by 10 minutes.However,with a speed of 40 km/hr, he reaches his office 5 minutes earlier.the distance between his house and office is