Weights of packets of rice (in kg) from a warehouse are grouped below:
Weight (kg): 0–5, 5–15, 15–25, 25–35, 35–40
Number of packets: 2, 5, 14, 8, 1
The class intervals are of unequal width. Find the mode of the weight distribution, correct to the nearest kilogram.