Then you know
(A) ........ and ........ (B)
According to my sketch you can see that
Solve the equations (A) and (B) for h and substitute (8-x) instead of y:
Solve for x. I've got and consequently and
I'll leave the rest for you.