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