Yes, they are the same height since there is a theorem (Side-Side-Angle) that says if two triangles has two sides congruents and is right angled, then they're congruent, also we can demostrate it we the pythagoras theorem:

If a and b of differents triangles are the same, so c of the two triangles would be the same too. a, b and c are the sides of the triangle.