In a kilometer race, A beats B by 50 meters or 10 seconds. What time does A take to complete the race?