Hi everyone please provide me the solution for the following problems on probability.Also please give me the valid and good explanation for the how you are arriving to the answers.Actually i am not finding good explanation for these problems in the book.

In a graduation class of 236 students,142 took algebra and 121 took chemistry. What is the greatest possible number of students that could have taken

both algebra and chemistry?

Thanks,

S.