Let be "f" the number five-point problems on the test and "t" the number of two-point problems on the test.
Based on the information given in the exercise, you can set up the following System of equations:

You can solve the System of equations using the Substitution method:
1. Solve for "t" from the second equation:

2. Substitute the equation obtained in step 1 into the first equation and solve for "f":

3. Substitute the value of "f" into the equation found in step 1 and evaluate, in order to find the value of "t":

The answer is:
- There are 8 five-point problems.
- There are 30 two-point problems.