Megan's morning run follows a triangular path. Two legs are equal and the third leg is 4 miles longer
han each of the other legs. If the total ride is 22 miles, what is the length of the longest leg?