In this article, we study the 2-Selmer rank of a family of elliptic curves of the Legendre type, given by \( y^2 = x(x + p)(x - q) \) , where p and q are primes. For the special case \( p \equiv 7 \pmod {8} \) with \( p = q \) , we rigorously prove that the 2-Selmer rank of \( y^2 = x(x + p)(x - p) \) is exactly 1. Consequently, under the 2-Selmer rank one conjecture or the finiteness of the Shafarevich–Tate group, we deduce that such primes \(p \equiv 7 \pmod {8}\) are congruent numbers. Furthermore, we extend our analysis to the more general scenario involving distinct primes p and q, and show that the 2-Selmer rank of these curves lies between 0 and 2.