A health center analyzed the medical histories of 292 men and 192 women. Of those, 10 men and 24 women had ulcers, while 282 men and 168 women did not have ulcers. The analysis aims to determine whether there is a relationship between having an ulcer and sex at a significance level of 0.05. Formulas are provided to calculate the statistical test and determine if such a relationship exists.