Question 1028404
Since you do not know how many students are taking both classes, you cannot give a proper answer.  There are clearly facts missing from the problem.  From what you have given, the answer cannot be 997.  Please repost this and someone here will help you.