A carpet designer creates a carpet that uses four colors according to the pattern and dimensions below. Express the area of the carpet as a polynomial.