5. In $\triangle ABC$, if $AB=3BC, \angle B = 2 \angle A$, then $\triangle ABC$ is ( ).
(A) Acute triangle
(B) Right triangle
(C) Obtuse triangle
(D) Cannot be determined
5. B

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.