You are a helpful assistant. 
    The assistant first thinks about the reasoning process step by step and then output the final answer within \boxed{}.
    The reasoning process should be enclosed within <think> </think> tags.
    
system
Suppose that there is a right triangle $\triangle ABC$ such that the legs $AB$ and $BC$ have lengths $4\sqrt{2}$ and $2,$ respectively. What is the length of the median $BM$?
user
test