Ten friends went out to dinner. two friends each paid $12 for dinner, three friends each paid $13 for dinner, and five friends each paid $17 for dinner. which is the median amount paid for dinner among the ten friends?