To solve this problem, we first need to determine how many appetizer recipes Roy learns per week.
Roy learned 9 appetizer recipes in 3 weeks. We can find the unit rate (recipes per week) by dividing the total number of recipes by the number of weeks:
\[ \text{Unit rate} = \frac{9 \text{ recipes}}{3 \text{ weeks}} = 3 \text{ recipes per week} \]
Now, we want to find out how many weeks it will take Roy to learn 78 appetizer recipes at this rate. We set up the equation:
\[ \text{Weeks} = \frac{\text{Total recipes}}{\text{Recipes per week}} \]
Substituting the values we have:
\[ \text{Weeks} = \frac{78 \text{ recipes}}{3 \text{ recipes per week}} = 26 \text{ weeks} \]
Therefore, Roy will have to attend 26 weeks of school to learn 78 appetizer recipes.