Mela becomes mele in the plural.
Pomodoro becomes pomodori in the plural.
Use quante to ask how many with a feminine plural noun: Quante mele?. Match the noun, not the person buying: quante mele but masculine quanti pomodori. Both ask for an item count. The same feminine choice works outside food: Quante magliette?. Compare Quanto costano le mele?, which asks the price; price quanto stays unchanged even for several feminine items. Quanto formaggio? asks the amount of the masculine mass noun cheese, which you can answer with a weight such as mezzo chilo. Keep count, weight and price distinct.
Un chilo is one kilogram. Link the complete measure to what you are weighing with di: un chilo di mele. Due mele counts two apples; un chilo di mele gives their weight. In this general request, use plural mele without an article after di. A mass noun can stay singular, as in mezzo chilo di formaggio: you are asking for cheese by weight, not counting cheeses.
Mezzo chilo is half a kilogram. Keep chilo singular after mezzo; two kilograms would be due chili. Add di and the product when you need to say what is being weighed.