The given matrices are:
\(A = \left( {\begin{aligned}{{}{r}}{ - 2}&3\\5&7\\2&{ - 2}\\4&6\end{aligned}} \right)\)and \(Q = \left( {\begin{aligned}{{}{r}}{\frac{{ - 2}}{7}}&{\frac{5}{7}}\\{\frac{5}{7}}&{\frac{2}{7}}\\{\frac{2}{7}}&{\frac{{ - 4}}{7}}\\{\frac{4}{7}}&{\frac{2}{7}}\end{aligned}} \right)\)
Find the upper triangular matrix by using \({Q^T}A = R\).
\(\begin{aligned}{}R & = {Q^T}A\\ & = \left( {\begin{aligned}{{}{r}}{\frac{{ - 2}}{7}}&{\frac{5}{7}}&{\frac{2}{7}}&{\frac{4}{7}}\\{\frac{5}{7}}&{\frac{2}{7}}&{\frac{{ - 4}}{7}}&{\frac{2}{7}}\end{aligned}} \right)\left( {\begin{aligned}{{}{r}}{ - 2}&3\\5&7\\2&{ - 2}\\4&6\end{aligned}} \right)\\ & = \left( {\begin{aligned}{{}{}}{\frac{{ - 2}}{7} \times \left( { - 2} \right) + \frac{5}{7} \times 5 + \frac{2}{7} \times 2 + \frac{4}{7} \times 4}&{\frac{{ - 2}}{7} \times 3 + \frac{5}{7} \times 7 + \frac{2}{7} \times \left( { - 2} \right) + \frac{4}{7} \times 6}\\{\frac{5}{7} \times \left( { - 2} \right) + \frac{2}{7} \times 5 + \left( {\frac{{ - 4}}{7}} \right) \times 2 + \frac{2}{7} \times 4}&{\frac{5}{7} \times \left( 3 \right) + \frac{2}{7} \times 7 + \left( {\frac{{ - 4}}{7}} \right) \times \left( { - 2} \right) + \frac{2}{7} \times 6}\end{aligned}} \right)\\ & = \left( {\begin{aligned}{{}{}}7&7\\0&7\end{aligned}} \right)\end{aligned}\)
Hence, the upper triangular matrix is,\(R = \left( {\begin{aligned}{{}{}}7&7\\0&7\end{aligned}} \right)\).