Question 2
Nam writes all four-digit numbers satisfying both conditions: the product of the thousands digit and the hundreds digit equals the tens digit; the product of the hundreds digit and the tens digit equals the units digit. How many numbers does he write?

