Write an equation for the scenario.

Five students came for after-school tutoring. Lin’s teacher assigned each of them the same number of problems to complete. Then he assigned each student 2 more problems. 30 problems were assigned in all.