The symbol [x] represents the greatest integer less than or equal to x. What is the value of x for which the product of [x] and x equals 39?