Bringing a gift to your teacher may not insure a good grade but might get you out of crappy tasks!
I bet a teacher would appreciate a cupcake that looks like an apple even more than an actual apple. Yes, they are the pillars of society, but everyone needs an unhealthy treat now and again. Plus, maybe it's some sort of apple spice cake, that's not so unhealthy right? I'd even eat that!