Suppose ABCD is a rectangle. Find AB and AD if point M is the midpoint of
BC
,
AM

MD
, and the perimeter of ABCD is 34 in.