solve p13, p14