\[(5a - 4)^{2} - (2a - 1)(3a + 7) =\]
\[= 25a^{2} - 40a + 16 - \left( 6a^{2} - 3a + 14a - 7 \right) =\]
\[= 25a^{2} - 40a + 16 - 6a^{2} - 11a + 7 =\]
\[= 19a^{2} - 51a + 23.\]