I have a basic understanding of odds ratio. I can't figure out how to integrate the space S into my odds ratio equation.

For the following figure:
S has 23000 genes, (all genes)
A has 751 genes and (condition1)
B has 375 genes (condition2)

How do I calculate the OR for A ∩ B?