An entrepreneur has sold San Francisco's most expensive home for $31 million