Three sides of a quadrilateral are the same length, q. The length of the fourth side is 7 inches. The perimeter of the quadrilateral is 40 inches. Write an equation that represents the situation.