From the condition, you should see immediately that 1/5 of the total weight is exactly 1/2 kilograms. Hence, the total weight is 2.5 kilograms.