In an amusement park, a visitor gets to ride on three different rides (A, B and C) for free. On a particular day 77 opted for ride A, 55 opted for B and 50 opted for C; 25 visitors opted for both A and C, 22 opted for both A and B, while no visitor opted for both B and C. 40 visitors did not opt for ride A and B, or both. How many visited the amusement park on that day?
From the figure, $$a + 22 + 25 = 77$$
=> $$a = 77 - 47 = 30$$
Similarly, $$c = 55 - 22 = 33$$
and $$b = 50 - 25 = 25$$
It is given that 40 visitors did not opt for ride A and B, or both
=> $$b + d = 40$$
=> $$d = 40 - 25 = 15$$
$$\therefore$$ Total number of people who visited with the entry pass on that day
= $$a + b + c + d + 22 + 25$$
= $$30 + 25 + 33 + 15 + 47 = 150$$