Beautiful grid problem
Source: 2024 AIME II Problem 3
February 8, 2024
Problem Statement
Find the number of ways to place a digit in each cell of a grid so that the sum of the two numbers formed by reading left to right is , and the sum of the three numbers formed by reading top to bottom is . The grid below is an example of such an arrangement because and .
[asy]
unitsize(0.7cm);
draw((0,0)--(3,0));
draw((0,1)--(3,1));
draw((0,2)--(3,2));
draw((0,0)--(0,2));
draw((1,0)--(1,2));
draw((2,0)--(2,2));
draw((3,0)--(3,2));
label("", (0.5,0.5));
label("", (1.5,0.5));
label("", (2.5,0.5));
label("", (0.5,1.5));
label("", (1.5,1.5));
label("", (2.5,1.5));
[/asy]