We will use the Pythagorean theorem to solve this. It states that the sum of the squares of the legs of a right triangle is equal to the square of the hypotenuse; algebraically,
a²+b² = c²
The height splits the base in two, giving us a leg of 3. The hypotenuse is 5. This gives us: