Complex sentence: Ewiniar passed within 50 km (30 miles) of Seoul as it moved across the country before becoming extratropical over the Sea of Japan the next day.
Split into simpler sentences: Ewiniar passed within 50 km (30 miles) of Seoul as it moved across the country. Ewiniar became extratropical over the Sea of Japan the next day.