\(\frac{5}{7}\times\frac{8}{9}+\frac{-1}{7}\times\frac{5}{9}+3\frac{4}{9}\\ =\frac{5}{9}\times\frac{8}{7}+\frac{-1}{7}\times\frac{5}{9}+3\frac{4}{9}\\ =\left(\frac{8}{7}+\frac{-1}{7}\right)\times\frac{5}{9}+3\frac{4}{9}=1\times\frac{5}{9}+3\frac{4}{9}\\ =\frac{5}{9}+3\frac{4}{9}=4\)
= 40/63-5/63+31/9
=35/63+31/9
=5/9+31/9
=4