Carmen spent a total of $40 at the grocery store. Of this amount, she spent $18 on fruit. What percentage of the total did she spend on fruit?