When Louisa arranges her pennies into a rectangle with two equal rows, three equal rows, four equal rows, or six equal rows, she has one leftover penny. When she arranges her pennies into a rectangle with five equal rows, she has two leftover pennies. How many pennies could Louisa have? Remember he has between 10 and 40 pennies total.