A segment is divided into two parts having lengths in the ratio of 5:3. If the difference between the length of the parts is 6", find the length of the longest part.