Problem 5. Grandpa Mille has a colorful garden. In it, he planted 3 rows of red and yellow tulips, 2 rows of white and red carnations, and 1 row of blue hyacinths. In each row, he planted 25 flowers. However, he planted the flowers in the following way: for every two red tulips, he immediately planted three yellow tulips next to them, and after each white carnation, he planted four red carnations. If the red flowers cost 5 denars each, the white ones 4 denars, the yellow ones 3 denars, and the blue ones 1 denar, how much money will Grandpa Mille earn at the market by selling all the flowers?
Solution. First, we need to calculate how many flowers there are in Grandpa Mile's garden. In one row, there are 25 flowers. In the rows with tulips, there are 2 red, then 3 yellow, and then it repeats. So, these five tulips repeat $25 \div 5 = 5$ times. This means that in that row, there are 10 red and 15 yellow tulips. Since there are 3 such rows, we conclude that there are a total of 30 red and 45 yellow tulips. Similarly, in the row with carnations, after 1 white, there are 4 red carnations. So, these five carnations repeat $25 \div 5 = 5$ times. Thus, in that row, there are 5 white and 20 red carnations. Since there are 2 such rows, we conclude that there are a total of 10 white and 40 red carnations. There is one row with blue hyacinths, so there are a total of 25 blue hyacinths. Therefore, in total, there are 30 red tulips and 40 red carnations, which is 70 red, 10 white, 45 yellow, and 25 blue flowers. Thus, Grandpa Mile will earn a total of

$$
70 \cdot 5 + 10 \cdot 4 + 45 \cdot 3 + 25 \cdot 1 = 350 + 40 + 135 + 25 = 550 \text{ denars. }
$$

## VI Section