Constraint in select_one yes_no with age and sex

Hello everyone,
I am in the configuration of my XLSform. I would like to add a constraint to one of my questions (select_one yes_no).
How to configure the constraints below:
'Yes' if 'age' <= 18 years
'Yes' if ('age'> = 18 years old and 'sex' = female)

Thank you all for your support.

Check this one might be this will helpful for you.

Above is just how can you use constraints.
Best,
@iamnarendrasingh

I think you have to use this constraints
if(${QYes_No}=Yes, .>0 and .<=18, .>18) in age question
and in Sex
if (${QYes_No}=Yes, Female, Male)
try this one