The answer would be 3n^2 + 2.
This can be found/proven by replacing "n" with term number (1,2,3,4...), then solving to get the final number. For example 3 * 1^2 + 2. You would first do 1^2, which is 1. Next, you would multiply 1 by 3, to get 3. Finally, you'd and the 2 to get 5. 5 is the 1st term, and you can use this same equation to get the rest of the terms you need.
I hope this helps!
Assume Josh made X cupcakes; Alice made Y cupcakes; Tom made Z cupcakes.
Josh made 10 more cakes than Alice so,
X = Y + 10 ---- 1st Eqn.
Alice made 8 more than Tom so,
Y= Z+8 --- 2nd Eqn.
Total cakes = 62 so,
X+Y+Z = 62 ---- 3rd Eqn.
by solving three equations we get X= 30; Y= 20; Z=12.
So Tom made 12 cupcakes
Slope = 0
b = 5
equation
y = 5