There are two noncongruent triangles that have a 9-inch side, a 10-inch side, and that enclose 36 square inches of area. Find the length of the third side in each of these triangles.