What was Commodore Perry’s significant contribution to the beginning of Japan’s transformation?

He closed all embassies except the US.
He opened Japan to the West.
He made Japan open its ports to Europe.
He sold US warships to Japan.