Carlos spent a total of $40 at the grocery store. Of this amount, he spent $14 on fruit. What percentage of the total did he spend on fruit?