Compare a half-kilo pack with a kilo pack
Example input
3 for 500 g
5 for 1 kgExpected result
6 / kg
5 / kgThe first offer costs 3 divided by 0.5 kilograms, or 6 per kilogram. The second costs 5 per kilogram, so it has the lower unit price before other costs or quality differences.