Assuming equal weight for each test,
Average score = total score/number of tests
Total score = 4 tests at 87 + 2 tests at 90 = 4*87+2*90 = 348+180 = 528 points
Number of tests = 4+2 = 6 tests
Average score = total score/number of tests = 528/6= 88 points