[tex]A=\frac{5+84-12x}{7-x}=\frac{5+12(7-x)}{7-x}=\frac{5}{7-x}+12[/tex]
Để [TEX]A[/TEX] đạt GTLN; [tex]\frac{5}{7-x}[/tex] phải đạt GTLN
[tex]\Rightarrow 7-x[/tex] phải nhỏ nhất, lớn hơn [TEX]0[/TEX]
Vì [tex]x \in\mathbb{Z}\Rightarrow 7-x\in \mathbb{Z}[/tex]
[tex]\Rightarrow 7-x = 1[/tex]
[tex]\Rightarrow x = 6[/tex]