Find all values of t such that t - 1, t + 1, and 6 - t could be the lengths of the sides of a right triangle.