Kara rolls a six-sided die six times, and notices that the results satisfy the following conditions:
- She rolled a $6$ exactly three times.
- The product of her first three rolls is the same as the product of her last three rolls.

How many distinct sequences of six rolls could Kara have rolled?

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