I have an irregular triangular pyramid. In this drawing, I have use arbitrary side lengths for simplicity. How do I find the altitude from the base (A,B,C) to the peak D?

The answer in a post made no sense to me about the height of an oblique pyramid here but one comment suggests (to me) that I set up the following equations:
$$X=(AD^2 - BD^2)/2AB + AB/2$$ $$Y=(AD^2 - CD^2)/2AC + AC/2$$ $$H=\sqrt{AD^2 - X^2 - Y^2}$$ Is this correct? I have no idea what I'm doing.
P.S. Somebody noticed the 6,8,10 in my figure. Please disregard the coincidence of a Pythagorean triplet in the diagram. Treat it as though the triplet were 6,8,11 or something else not a $right$ triangle.
Here is a general solution that is easy enough to understand. As others have done, let A=(0,0,0) and C=(7,0,0). From your example, $a=5$; $b=6$; $c=7$; Use the law of cosines to get angle $\alpha$ at point A in the xy plane. $a^2+c^2-2ac\,\cos(\alpha)=b^2$. Doing that, point $B=A + a\cdot(cos(\alpha), sin(\alpha),0)=(2.71429,4.19913,0)$ Next we will find point $D$, and having done so, the z-coordinate of $D$ is your height answer. To find $D$, we simply write the equation for 3 spheres with radii being the lengths of the 3 tetrahedron legs going out of the plane. Let's start with the hardest one, being the sphere centered at point $B$. $$(x-2.71429)^2 + (y-4.19913)^2 + z^2= 8^2$$ Now we write spheres for the two easy ones centered at $A=(0,0,0)$ and $C=(7,0,0)$. $$x^2 + y^2 + z^2 = 9^2$$ $$(x-7)^2 +y^2 +z^2=10^2$$ Finally, for the last part (which could be tedious or easy depending on your use of CAS), solve the three spheres simultaneously for $x,y,z$ and you are done. $$D=(2.14286,3.61591,7.95822)$$