We can use the formula:
P(A and B) = P(A) + P(B) - P(A or B)
where A represents playing basketball, B represents playing baseball, and P(A or B) represents the probability of playing at least one of the sports.
From the given information, we can calculate:
P(A) = 13/29
P(B) = 14/29
P(A or B) = 1 - P(neither) = 1 - 11/29 = 18/29
Substituting these values into the formula, we get:
P(A and B) = 13/29 + 14/29 - 18/29
P(A and B) = 9/29
Therefore, the probability that a student chosen randomly from the class plays both basketball and baseball is 9/29.