Gwendoline rolls a pair of six-sided dice and records the product of the two values rolled. Gwendoline
repeatedly rolls the two dice and records the product of the two values until one of the values she records
appears for a third time. What is the maximum number of times Gwendoline will need to roll the two dice?


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