The following table shows the lifetimes of 40 electric bulbs produced in a plant.
Lifetime (hours): 10–20, 20–30, 30–40, 40–50
Frequency: 6, 12, 12, 5
Two consecutive classes have the same highest frequency. Determine the mode of the lifetimes. (Answer correct to the nearest whole number.)