If he sells the lower-profit item for $640, and made a 20% profit, then he paid:for that item.
If he sells the higher-profit item for $640, and made a 40% profit, then he paid:for that item.
We then get total COST as:
Therefore, his OVERALL profit percent =