Let $ABC$ be a triangle of perimeter $100$ and $I$ be the point of intersection of its bisectors. Let $M$ be the midpoint of side $BC$. The line parallel to $AB$ drawn by$ I$ cuts the median $AM$ at point $P$ so that $\frac{AP}{PM} =\frac73$. Find the length of side $AB$.