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