Using it's concept, it is found that there is a 0.3 = 30% probability to select a pupil that uses the swimming pool but not the gym.
A probability is given by the number of desired outcomes divided by the number of total outcomes.
In this problem, we have that 50 - 7 = 43 pupils use at least one of the pool or the gym.
We use the following relation, considering the numbers of each:
Both = Pool + Gym - At least one
Hence:
Both = 31 + 28 - 43 = 16.
From this, we have that out of 50 pupils, there are 31 - 16 = 15 pupils who use the pool but not the gym, hence the probability is:
p = 15/50 = 0.3 = 30%.
More can be learned about probabilities at https://brainly.com/question/14398287
#SPJ1