Artificial intelligent assistant

Counting patients in a hospital. (Actuarial exam) The number of patients in a hospital is 54. Of these 29 are male and 12 are in intensive care. If among those not in intensive care 18 are female, how many males are in intensive care? The correct answer is 5, but I have no idea how to reach that answer with appropriated set terminology.Thanks.

* $54$ patients $-$ $29$ men $=$ $25$ women

* $25$ women $-$ $18$ women not in intensive care $=$ $7$ women in intensive care

* $12$ patients in intensive care $-$ $7$ women in intensive care $=$ $\mathbf{5}$ **men in intensive care**

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy a3b96dce9ae36f7e9ea0cd559ef8ede4