Let S be a fixed set of primes, and let \((X_{l})_{l\ge 1}\) be the X-coordinates of the positive integer solutions (X, Y) of the Pell equation \(X^2-dY^2 = 1\) corresponding to a nonsquare integer \(d>1\) . We show that there are only a finite number of nonsquare integers \(d>1\) such that there are at least two different elements of the sequence \((X_{l})_{l\ge 1}\) that can be represented as a sum of S-units with a fixed number of terms. Furthermore, we explicitly solve a particular case in which two of the X-coordinates are products of a power of 2 and a power of 3.