Given a group of n = 100 people made up of Italians and foreigners, two people are chosen at random. Knowing that the probability that only one of them is foreign is p ≈ 0.18, a possible composition of the group is identified (number of Italians nI and number of foreigners nS).
I wrote that $ \binom{100}{1} p_s ^{1} ( 1- p_s)^{99} \binom{99}{1} p_s^{0} {1-p_s }^{99} = 0.18 $ so i found that $ p_s = 0.053 $ where $ p_s $ is the probability that a person is stranger. I dint know if a made mistakes because I dint have the result
If I understand your problem correctly, you should just find ways to choose $2$ people out of $100$ such that one of them is foreigner (and the other is Italian).
Say there are $n$ foreigners. Then we have,
$\displaystyle \frac{{n \choose 1} {100-n \choose 1}}{100 \choose 2} = 0.18$
Leads to quadratic $n^2 - 100n + 891 = 0$. You can solve for possible values taking nearest positive integers.