Well, first consider how many digits there are. You have 1, 2, 3, 4, 5, 6, 7, 8, 9, and 0, depending on how you use it, that are all digits. If you count 0 as a digit other than a place holder (0000, 0001, etc.), you would end up with ten thousand (10,000) numbers with four digits, starting with 0000, and ending with 9999. If you count 0 as nothing other than a place holder (1000, 1001, etc.), you would have nine thousand (9,000) numbers with four digits, starting with 1000. So, depending on how you view 0, you can make up to 10,000 different numbers that contain four digits.
Since you know it has a point at (0, 2) - the y intercept, put those values into the equation and solve. To be perpendicular it seems the reciprocal of the slope with the opposite sign, so 2/3 is the original slope, and -3/2 becomes the new slope.
y = 2/3x + 8 becomes
2 = -3/2(0) + b We substitute in the x and y values, but we have to figure out what the last number will be.