There are white, blue, and red boats in a marina. Two-thirds of the boats in the marina are white, five-eighths of the remaining boats are blue, and the rest are red. If there are 6 red boats, how many boats are in the marina?