8. For two matrices \( A, B \in M_{n \times n}(R) \), if \( A \) and \( B \) have the same eigenvalues, then \( A \) is similar to \( B \).