\(\sqrt{a}-\sqrt{b}=20\\ a = (20+\sqrt{b})^2\\ a-5b = (20+\sqrt{b})^2-5b\\ \dfrac{d}{db} (20+\sqrt{b})^2-5b = \\ 2(20+\sqrt{b})\cdot \dfrac{1}{2\sqrt{b}} - 5\\ \text{and we set this equal to 0}\)
\(\dfrac{20}{\sqrt{b}}+1 = 5\\ \sqrt{b}=5\\ b=25\\ \sqrt{a}-5=20\\ a=625\)
\(\text{Max value of $a-5b=625-5(25)=500$}\)
.