From the information given in the statement let be
Where
*f: number of students taking a French class
*s: number of students taking a Spanish class
So, you have a system of linear equations, which you can use the substitution method.
To do this, replace the value of the first equation in the second equation and solve for s
Now,