PUMaC 2008 Number Theory A Problem 8

Find all sets of three primes p, q, and r such that p+q=r and (r-p)(q-p)-27 p is a perfect square.