A certain triangle has a perimeter of 3077 mi. The shortest side measures 71 mi less than the middle side, and longest side measures 376 mi more than the middle side.find length of three sides