Part (a)
x = score on the final exam
The final exam counts as two regular tests. So what we really have are two copies of x in the set of scores like this
Set of scores = {77, 87, 85, 55, x, x}
We can think of this set of scores as basically the set of regular test scores.
Add up the scores and divide by the sample size 6 to compute the average. We want this average to be 77 or higher, so,
==================================================
Part (b)
The result
means that she needs an 79 or better on the final exam so that her overall course average is 77 or better.