Determine what declension each noun belongs to. Examine the ending on each noun's genitive in order to make your decision.