Let the first number be ‘X’, so the other number will be ’(X+3)’.
∵ X(X + 3) = 504
X2 + 3X– 504=0
On applying Sreedhracharya formula

X = –24 or 21.
∴ if the first number is – 24 , then the other number is – 21.
∴ if the first number is 21 , then the other number is 24.
∴ The numbers are not (21,24) & (– 21, – 24).