A ship leaves a port and travels 12km due east. Then it turns and travel 9km due north. How far is the ship from the port?