Find the number of rearrangements of the letters in the word "MATHMEET" that begin and end with the same letter, such as "TAMEMHET".

Let's think step by step and output the final answer within \boxed{}.
user