Question 22
A four-digit number $\overline{ABCD}$ is multiplied by its units digit $D$. The result is a different four-digit number $\overline{DXYA}$, so its thousands and units digits are swapped compared with the original number. Different letters may represent the same digit. How many numbers $\overline{ABCD}$ have this property?

