The probability of each union of events is obtained by summing the probabilities of the separated events and substracting the intersection. I will abbreviate female by F, junior by J, male by M, senior by S. We have
Note that a student cant be Junior and Senior at the same time, so the probability of the combined event is 0. The probability of the union is 1 because every student is either Junior or Senior.
The terms in this expression are coefficients, constants, variables, and exponents. 3 and 4 would be the coefficients. 8 would be the constant. r is the variable and 2 is the exponent.