Explanation:
s = science problems
m = math problems = 10 + s totaled = 34
s + 10+s = 34
2s = 24
s = 12 then m = 22
System of equations
m+s = 34
m = 10 + s <=====,ultiply this equation by -1
-m =-10 -s add to first equation
s = 24 -s
2s = 24
s = 12 then m is 10 + s = 22