The area of a square is 18 sq in less than twice the area of a triangle. the base of the triangle is 3 in longer and the altitude is the same length as the side of the square