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?