If y is the amount of cupcakes, and x is the time that it takes to prepare them, we can write the equation that relates this two variables:
y = 24x + 48
We use 24 as a value to multplicate x because Shauna make 24 cupcakes in one hour and already have 48 cupcakes.
Hope it helps.