every math class at super fun time high school has 31 students and every science class has 18 students. the school offers 4 more math class than sciencs. if the school has 418 students, how many of each class does the school offer.

X science classes.

(X+4) math classes.

18x + 31(x+4) = 418
18x + 31x + 124 = 418
49x = 418 - 124 = 294
X = 6.
(X+4) = 6 + 4 = 10.

To solve this problem, we can use a system of equations. Let's represent the number of math classes as "m" and the number of science classes as "s."

1. We know that each math class has 31 students, so the total number of students in math classes is 31m.
2. Similarly, each science class has 18 students, so the total number of students in science classes is 18s.

Based on the given information, we can create the following equations:

Equation 1: 31m + 18s = 418 (the total number of students in the school is 418)
Equation 2: m = s + 4 (there are 4 more math classes than science classes)

Now, we can solve this system of equations.

Substitute the value of m from Equation 2 into Equation 1:
31(s + 4) + 18s = 418
31s + 124 + 18s = 418
49s = 294

Divide both sides of the equation by 49:
s = 6

Now, substitute the value of s back into Equation 2 to find the value of m:
m = 6 + 4
m = 10

So, the school offers 10 math classes and 6 science classes.