Each cupcake costs $4 per student.
The following equation represents the relationship between the total cost and the number of students.
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
Therefore, the total cost of cupcakes for 36 students will be $144
Option D is the correct answer.