what is the equation for 30 out of 3/6,I’m doing a tape diagram!!

Out of the 30, 15 students brought snacks
From the question, we have it that out of the 30 students, only 3/6 bought
The number that brought snacks can be calculated by multiplying the fraction with the number of students
Mathematically, we have this as;
[tex]\frac{3}{6}\times30\text{ = 15}[/tex]