It is given that two of the altitudes of a scalene triangle $ABC$ have length $4$ and $12$. If the length of the third altitude is also an integer, find it's maximum value.
What I Tried: I have no good idea for this. Here is a picture for an example in Geogebra :-

I have to find the maximum value of $AG$ . In this example I suppose, the value of $CD$ can be increased more if we don't take an obtuse triangle, but all I am trying to do here is hit and trial.
Moreover, in this case $AG$ is not an integer (unless you consider it to be $4$) , so how do you make sure that the other altitude is an integer too?
Can anyone help me with this?
$$ \triangle = \dfrac{1}{2}a\cdot4 = \dfrac{1}{2}b\cdot12 = \dfrac{1}{2}c\cdot h$$
$$ {a = \dfrac{\triangle}{2}, b = \dfrac{\triangle}{6}, c = \dfrac{2\triangle}{h}} $$
Now use
$$ a-b \lt c \lt a+b$$
I got $$\boxed{h_{\text{max}}=5}$$