In order to find how many trains can be put in each row while having only one type of car in each row, you must find the GCF of all the numbers of cars.
First factor all three numbers
36 Engines= 2233
72 boxcars = 22233
18 cabooses= 233
Since each number contains at least 23*3, or 18, each row can be up to 18 train cars in length.
In this case, there will be 1 row of cabooses,
18 ÷18=1
2 rows of engines,
36÷18=2
and 4 rows of boxcars
72÷18=4