Thomas had 1 quarter, 4 dimes, and 3 pennies that he wanted to use to buy a new pencil. What is the MOST the pencil could cost?