Jessica has 5 cupcake cases left.
First, divide 50 into groups of five. Next, subtract two groups of five from 50. Third, divide the remaining cases into groups of six. Finally, subtract 5 groups of six from the remains from the last subtraction equation.