The thoracic segments have one ganglion on each side, which are connected into a pair, one pair per segment. How many ganglia are on each side of a thoracic segment