All nouns in Spanish have a gender. They are either masculine or they are feminine. Every noun is either one or the other and you just have to learn them. But there are some clues. Un problema is ...
Nouns are words that name things, people, places and ideas. In Spanish, all nouns are either masculine or feminine. This is called the gender of the noun.