The length of one side of a triangular lot is 6 m less than 3 times the length of the second side. The third side is 8 m longer than the first side. The perimeter of the lot is 80 m. Find the length of all three sides.