Are you talking about Ankhanessa's constellation code? You won't know this until you've found the sailor. If it's the combo to get through the fire door, it's the same one you use to get in the cave. Don't do the black riddles. They are supposed to be impossible.