I encounter a Maths question that I have spent for more than two hours to try but unable to figure out how to do it. Actually I finally reached the answer but I hope someone can show me the detailed solution and its tree diagram. Please.
The question is
The ratio of male students to female students in different forms of a school is 4:6 and the ratio of S1-2 students, S3-4 students and S5-6 students in the school is 5:4:1. The probabilities of an S1-2 student, an S3-4 student and an S5-6 student spending more than 4 hours online per day are 30%, 25%, 10% respectively. If a randomly selected student has spent more than 4 hours online in a day, find the probability that the student is an S6 male student.
I really don't know how to draw the tree diagram and solve the question in the Bayes' Theorem's approach
Please help, Thank you