Rachel made a mosaic from different color rectangular tiles. Three tiles measured 312 inches by 3 inches. Six measured 4 inches by 314 inches. What is the area of the whole mosaic in square inches?