50÷(2+3+3)=6....2
The "2" of the remainder should be safflower in order.
So the number of safflower is 2×6+2= 14 (flower).
The number of yellow and green flowers is 3×6= 18 (flowers).