Challenge 280: What's the perimeter?
The two shorter sides of a right-angled triangle are p and q.
Given that for these values of p and q,
√(p2 – 6p + 10) + √(q2 - 6√3q + 36) is less than or equal to 4,
calculate the exact perimeter of the triangle.