Suppose that $z, d\in \mathbb{Z}$ are a $3$-digit positive integer with $24\text{gcd}(z, d) = \text{lcm}(z, d)$. How can we find the minimum of $z+d$?
$$\begin{align}\text{gcd}(z, d)\text{lcm}(z, d) = zd&\iff 24\text{gcd}^2(z, d) = zd \\\ &\iff \text{gcd}(z, d) = \sqrt{\frac{zd}{24}}\end{align}$$
and
$$\begin{align}\text{gcd}(z, d)\text{lcm}(z, d) = zd&\iff \frac{\text{lcm}^2(z, d)}{24} = zd \\\ &\iff \text{lcm}(z, d) = \sqrt{24zd}\end{align}$$
If $\text{gcd}(z, d), \text{lcm}(z, d)\in \mathbb{Z}$ are both integers, then the numbers $\displaystyle \frac{zd}{24}, 24zd\in \mathbb{Z}$ both have to be a perfect square. However, I am not sure where this would lead us
You’re off to a great start! You have the equation in a form that’s much easier to work with:
$$ 24gcd(z,d)^2 = zd $$
Here’s an idea when you see a problem like this: play around with the numbers until you find a solution to it, and only then look at minimizing your other expression, $z + m$ in this case.
Try that and see if it gets you anywhere. Otherwise keep reading.