A man runs for 100 m in 50 s and then rests for 10 s. If he participates in a 500 m race, how much time will he take to complete the race?