pls help thx x, wont take to long:)

Paulo gave half of his candies to Pablo. Pablo gave half of his candies to Paulina. Paulina gave 1/4 of the candies given to her to Paulette and kept the remaining 27. How many candies did Paulo start with?