The sum of two angles in a triangle is equal to the third angle and two sides of the triangle have lengths of 4 and 5 units. Find the length of the third side of the triangle, if it is a whole number.