Understanding a riddle: How many flowers in a bouquet, if all but two are roses, all but two are tulips, and all but two are daisies?

Let $n$ be the total number of flowers. When the problem says that all but two of the flowers are of one kind, it means there are $n-2$ flowers of that kind. Therefore, $n-2$ of them are roses, $n-2$ of them are tulips and $n-2$ of them are daisies. Assuming that this exhausts the list of flowers, we can write $n-2+n-2+n-2 = n$ which gives $n=3$


All but two mean's you have got to subtract $2$ from the quantity. Let $m$ be the total number of flowers. Then you have $$m-2 + m-2 + m-2 =m$$ and then solve for $m$.