X = 24 (I used a ratio because it has to be adjacent.)
(WORK SHOWN BELOW)
7x = 35 (divide by 7 on both sides to get x by itself)
x = 5
Assuming I understand what you're saying, if there are 2 boxes in a crate and 18 bags in a box, the answer would be 12 * 36 = 432