The sides of a triangle have lengths p=8 units, q=12 units, and r=15 units. What is the perimeter of the triangle, in units?
30
32
35
38