A student brings whole cherry and cheese danishes to his class for his birthday. The number of cherry danishes he brings is at least 3 more than $\frac{2}{3}$ the number of cheese danishes, but no more than twice the number of cheese danishes. Find the smallest possible value for the total number of danishes he brings.

Let's think step by step and output the final answer within \boxed{}.
user