The pie chart represents the number of stalks of each type of flowers sold by a florist. An equal number of stalks of sunflowers and tulips were sold. The florist sold 8 more stalks of roses than marigolds. What was the total number of stalks of flowers sold?