Answer:
AH= 1 or 4.
CH = 4 or 1.
Step-by-step explanation:
Please find the attachment.
We have been given that in triangle △ABC, ∠ABC=90°, BH is an altitude. We are also told that AC equals 5 and BH equals 2.
Altitude geometric mean theorem states that altitude drawn to hypotenuse of a right triangle separates the hypotenuse into two segments and the length of this altitude is geometric mean between the lengths of these segments.
Using Altitude geometric mean theorem we can set an equation as:

Upon substituting BH=2 in our equation we will get,

Let us cross multiply our equation.


We can see from our attachment that
.
Substituting AC equals 5 in this equation we will get,

We have two equations and two unknowns, so we will use substitution method to solve system of equations.
From equation (2) we will get,

Substituting this value in equation (1) we will get,



Let us factor out our quadratic equation by splitting the middle term.





1st case: If AH is 1.
Upon substituting AH=1 in equation (2) we will get,



When AH is 1, then CH will be 4.
2nd case: If AH is 4.
Upon substituting AH=4 in equation (2) we will get,



When AH is 4, then CH will be 1.