Shan had 30 more stickers than Wendy at first. Wendy gave 12 of her stickers to Shan. Shan then had 3 times as many stickers as Wendy. How many stickers did Wendy have at first?

s = w+30

s+12 = 3(w-12)
now find w