One side of a triangle is 8 feet longer than the second side. The third side is 4 feet longer than the second side. The perimeter of a triangle is 36 feet. Find the length of each side.