Let the number of people who had eye problem be n(E) and number of people who had heart problembe n(H).
Then, the number of people who had both eye and heart problem is n(E∩H) and the number of people having either of the problem is n(E∪H).
We know that n(A∪B)=n(A)+n(B)−n(A∩B) where A and B are the respective sets.
Here, it is given that in a medical examination of 150 people, 90 had eye problem, 50 had heart problem and 30 had both complaints, that is n(E)=90,n(H)=50 and n(E∩H)=30 and therefore,
n(E∪H)=n(E)+n(H)−n(E∩H)=90+50−30=140−30=110
Thus, the number of people having either of the problem is 110.
The percentage of people who had either eye problem or heart problem is:
110150×100=73.33%
Hence, 73.33% of people were there who had either eye problem or heart problem.