[tex]total \: number \: of \: students = 24 \\ wearing \: jeans = 7 \\ wearing \: shorts = 4 \\ wearing \: skirts = 8 \\ wearing \: leggings = 5[/tex]
[tex]P(x) = \frac{7C_{2} \times5C_{1} }{24C_{3}} = \frac{105}{2024} [/tex]
[tex]P(x) = \frac{7}{24} \times \frac{6}{23} \times \frac{5}{22} \times \frac{3!}{2!} = \frac{105}{2024} [/tex]