A man walks 12 km in towards south, and then he walks 6 km towards west. How far is he from the starting point?