Simple proportions from tables

If you have a two way table of counts (both qualitative variables) using data from a sample, X, and one of the columns is A and one of the rows is B and the question asks:

**What percentage of X were for those who were A and who were B.**

Should you:

- use the value that is in both A and B and divide it by X or,

- use all values that are either in A or B (or both) and divide it by X?

I think it's the second option but I'm not too sure. The wording was really confusing because I thought "and" meant both A and B but I still chose the second for some reason...

Thanks in advance.