The perimeter of a square is 36. What is the length of the diagonal?