A triangle has a perimeter of 24 units. What is the length of the longest side?
Statement (1): One side of the triangle is 10 units long.
Statement (2): The other two sides of the triangle are equal in length.