.
Solution to Problem 1.
Let n be the number of students in the class.
Then from the condition, you have this equation
8n + 4 = 5n + 40.
Now solve it
8n - 5n = 40 - 4
3n = 36
n = 36/3 = 12. ANSWER
Answer. There are 12 students in the class.
Solved.
/\/\/\/\/\/\/\/
Hello, there is a RULE, a POLICY and a REQUIREMENT at this forum:
ONE and ONLY ONE problem/question per post.
Please, respect the tutors --- do not violate this rule.
Those who violate it, work AGAINST their own interests.
Have a nice day (!)