The sides of a triangle have lengths of x, x + 5, and 25. If the longest side is 25, which of the following values of x would make the triangle right? A. 10 B. 12 C. 15 D. 17