Query about question "$2^{x}-2^{y}=960$, where $x$..." [1273]

https://www.gregmat.com/problems/quant?problem=2x-2y224-where-x


hey so for this question, I broke down 960 into its prime factors i.e., 2^6 x 3 x 5.

Since x > y (as the difference is positive), I carved out 2^y and turned it into the equation –>

2^y ( 2 ^(x-y) - 1 ) = 2^6 x 3 x 5

( 2 ^(x-y) - 1 ) = 15; y=6; therefore x = 10

Just wondering if this method is inaccurate but the answer is accidentally correct or if it works? Thanks!