$x$, $y$ and $z$ are different prime numbers;
$$x(z-y) = 18$$
$$y(z-x) = 40$$
Determine $x+y+z$.
I conceive of a way to solve this problem, which is to analyze the cases. For instance, Let's recall $x = 2$, then $z-y$ should be $9$. It will also give us $y = 5$. However, it doesn't satisfy the condition due to $z = 14$, which is not a prime number. How would you solve this question?
Regards!
Hint: $40 = 2^3 \times 5$. So $y$ must be $2$ or $5$. Similarly $x=2,3$.