A teacher has 2 packages of red, 6 packages of blue, and half a package of yellow squares. He wants to build a rectangle so that each roe is the same color. What can be the maximum number of squares per row?