A certain triangle has a perimeter of 3085 mi. the shortest side measures 73 mi less than the middle​ side, and the longest side measures 371 mi more than the middle side. find the lengths of the three sides.