I need help with a question but I answered it already I just want to be sure with my answer

Each cupcake costs $4 per student.
The following equation represents the relationship between the total cost and the number of students.
[tex]y=4x[/tex]Here y is the total cost and x represents the number of students.
To find the total cost of cupcakes for 36 students, substitute x = 36 into the above equation
[tex]\begin{gathered} y=4x \\ y=4(36) \\ y=144 \end{gathered}[/tex]Therefore, the total cost of cupcakes for 36 students will be $144
Option D is the correct answer.