Artificial intelligent assistant

How many men are not married. Please help me solve the follow problem: In a group, there are 15 men and 20 women. 17 people are married and 18 people are not married. If the numer of people who are women or married is 27, then how many men are not married. Thanks for your help.

This is how I'm visualizing it.

$\hskip{.75in}$![enter image description here](

Men are represented by the blue circle, women by the red, and married individuals by the green. From here, we can make a system of equations.

There are 15 men $\Rightarrow$ $A + B = 15$.

There are 20 women $\Rightarrow$ $C + D = 20$.

18 are not married $\Rightarrow$ $A + D = 18$.

17 people are married $\Rightarrow$ $B + C = 17$.

27 people are married or women $\Rightarrow$ $B + C + D = 27$.

Solving this sytem of equations will give you all the variables. You are looking for $A$.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 407fd9b02cfd81e1fe2a0a00122cd747