Jane has a bag of candy, she gives 8 to her friend. Then jane's grandmother buys 5 more pieces than jane had originally. Now jane has 27 pieces of candy. How many pieces where originally in Jane's original bag of candy