For this case we have that the area of the shaded region is given by the subtraction of the large rectangle minus the small rectangle.
Thus, the area of the shaded region is
If the triangle must have the same area and a height of 25, then we have:
Dividing between 12.5 on both sides of the equation:
Thus, the base of the triangle is 32.
Answer:
32