Pablo is dividing a dish of brownies for a party. The brownie mix cost $2.89. He cuts the brownies into squares that measure 3 inches by 3 inches. If the pan is 18 inches long and 12 inches wide, how many brownies did he cut?