Set up two equalities with the given info using x and y as the number of questions in both
X + Y = 24
5x + 3y = 100
Now take the first equation and solve for one variable. We will start with X
X = 24 - Y
Now we have a value for x (24-y). Plug this value for x into the second equation
5(24-y) + 3y = 100
Now solve for y
120 - 5y + 3y = 100
120 -2y = 100
-2y = -20
Y= 10
Now we have the exact y value. Plug this value into the second equation to solve for x
5x + 3(10) = 100
5x + 30 = 100
5x = 70
X = 14
Now check your work by plugging both the value for x and y into the first equation
14 + 10 = 24
24 = 24
X = 14
Y = 10