Answer:
The probability of students playing both basketball and baseball =

Explanation:
Total strength of class = 30 students
Number of students who play basketball = 12
Number of students who play baseball = 17
Number of students who play neither sport = 5
Number of students that play either sport =
= 25
Number of students who play both sports will be given as:
⇒ Number of students playing basketball + Number of students playing baseball - Number of students playing either
⇒

⇒

Thus probability of students playing both basketball and baseball is given as:
⇒

⇒

Dividing numerator and denominator by 2 to reduce to simplest fraction.
⇒

⇒
(Answer)