A surprising amount of math is ultimately common sense, and this is an example. The hard part, perhaps, is to understand what the question means, because it isn't quite what you'd expect someone to ask in real life:
We could take that in a couple different ways if we had never seen such a question; you might imagine it means "how many different strategies are there for deciding whom to choose"! But in a probability class, the definition of [discrete] probability is "the number of possible (equally likely)
ways to accomplish the goal (that is, ways the given '
event' can occur), over the total number of
ways something can happen ('
outcomes')". So the question is about identifying distinct possibilities (in this case, for the choice of an instructor), in a way that will all be equally likely.
Now,
@khansaheb has suggested one wrong way to do this: We could just identify the outcomes as "male" or "female"; then there are only two "ways" to choose. But those are not equally likely, so that is not what they are looking for. Yet it is a conceivable meaning, if you aren't familiar with this type of problem.
All we know is that there are 12 male and 13 female instructors, so the possible outcomes (equally likely if we choose randomly) are those
25 distinct people.
It's quite possible, since you haven't told us, that you haven't yet been told the definition of probability, in which case not everything I've said is available to you. I think authors of introductory books can tend to assume too much of an untaught reader, so confusion is not uncommon.
In the last few days I've run across a similar issue in several students I've worked with literally at all levels -- from arithmetic to linear algebra: In the first chapter of a book, a very basic question is asked, and it is so basic (pretty much common sense) that the student doesn't think it can be that simple, so they instead answer a harder question. This one is similar, in that it really is common sense to count the total number of choices you are given, but you can complicate it by wondering what they mean by "ways".