Two altitudes of a triangle have lengths 12 and 14. What is the longest possible length of the third altitude, if it is a positive integer?