The scores of Alexandria are 82, 77, 81, 74 and x, the score of the last test.
the average of these 5 is

,
to get a
b, the average must be at least 80.
So,

314+x=400
x=400-314 = 86
Thus, to get a B, Alexandria must score at least 86 on her last test.
Answer: 86