Practice problem
Probability: Two Dependent Events

The following table shows the favorite subjects of students at a local secondary school. First determine the probability of a student having math as their favorite subject, then determine the probability of that student being in middle school.