Maria made 4 pies for the school carnival. She cut each pie into 8 slices. If she sold 27 slices, how many slices did she have leftover?