If AMD is an isosceles right triangle, its height is half its width*. Then
AB = (1/2)AD
2(AB + AD) = 34 in
(1/2)AD +AD = (3/2)AD = 17 in
AD = 34/3 = 11 1/3 inches . . . . . multiply by 2/3
AB = 5 2/3 inches . . . . . . . . . . . = (1/2)AD
_____
* The altitude of an isosceles right triangle divides the triangle into two isosceles right triangles. One leg of each of these smaller triangles is half the length of the base, and the other leg is the altitude. Since the two legs of an isosceles right triangle are congruent, the altitude of AMD is half the base AD.