What you need to know is that the area of a trapezoid is 1/2 the sum of the 2 bases times the altitude.
B= 5b-19
sum of the bases is 6b - 19
(18/2)(6b-19) = 477
Solving this will get you b=12. You find B and them make sure your answer meets the requirements of the problem.