The perimeter of triangle ABC is 36cm. AB=AC, AP bisects angleBAC, and AP=12 cm. Find AB