He walked almost 30 miles before being found.