Solve the following math problem step by step. The last line of your response should be of the form Answer: \boxed{$Answer} where $Answer is the answer to the problem.

<image>If XN = t - 2, NZ = t + 1, XM = 2, and XY = 10, solve for t