A motor-cycle covers 40km with a speed of 20 km/hr. Find the speed of the motor-cycle for the next 40km journey so that the average speed of the whole journey will be 30km/hr.