When Xander arranges his pennies into a rectangle with more than one row, he always has some leftover pennies. When he uses two equal rows or three equal rows, he has one leftover penny. When he arranges them into a rectangle with four equal rows, he has three leftover pennies. Remember he has between 10 and 40 pennies total. How many pennies does Xander have?