A company makes a red and green flag that measures 12 inches by 18 inches. The flag has 126 square inches of red material and 90 square inches of green material. What is the width of the red material on the flag? What is the width of the green material?