Ah yes,
I can see where those equations came from. But, the claim that only one unknown remains is a bit misleading. Both magnitude of L and angle A are undetermined.
I also see how the final equation was derived, by setting the first two equal to themselves. Unfortunately I think that only gives you the definition of tangent, i.e. Sin/Cos of any angle. Though, I may be wrong there.
What would make life easy is if a second, generaly unrelated equation, could be formulated - to fulfill the "2 equations, 2 Unknowns" requirement. By analyzing the "Peg" rectangle hypotenuse I get:
L = ((H-(2D*SIN(A))2 + W2 - D2)1/2
The major problem is setting it equal to one of your equation. The reduction process becomes quite a handful.