## 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,*

√(*p*^{2} – 6*p* + 10) + √(*q*^{2} - 6√3*q* + 36) is less than or equal to 4,

calculate the exact perimeter of the triangle.