On the day after Halloween, Naomi had 5 times as much candy as Raven. If Naomi gives 10 pieces of candy to Raven, they will each have the same amount. How many pieces of candy do they have in all?

N = 5R

N - 10 = 5R - 10 = R + 10

Find R, then N.