An automobile covered the distance of 240 km between A and B with a certain speed. On its way back, the automobile covered half of the distance at the same speed and for the rest of the trip he increased his speed by 10 km/hour. As a result, the drive back took him 2/5 of an hour less than the drive from A to B. What was the automobile’s speed when it was driving from A to B?