If the ratio of the purple flowers to black flowers is 4 to 8 and there are a total of 108 flowers, how many of the flowers are purple?