A triangle has an area of 24 square meters. The base is two meters longer than the height. What is the length of the base of the triangle?