Terry had some nails. He used $$\frac{5}{6}$$ of them to make a cupboard and $$\frac{1}{4}$$ of the remaining nails to make a chair. He had 66 nails left. <hr> He used <input min="0" type="number" id ="imp5pg057q9a_1" class="lineinput" placeholder="?" /> more nails for the cupboard than the chair.