The figure above shows an incircle of a triangle $$ABC$$ with sides 6-12-17. Let $$P$$ and $$Q$$ be the points on the side lengths $$AB$$ and $$AC$$ respectively, such that $$PQ$$ is tangent to the incircle. Find the perimeter of the triangle $$APQ$$.