Write the equation for this problem

And a freshman high school class of 80 students 20s two students take consumer education 20 students take French and four students take both which equation can be used to find the probability P that a randomly selected student from this class takes consumer education French or both

P = (Number of students taking consumer education + Number of students taking French - Number of students taking both) / Total number of students

P = (22 + 20 - 4) / 80