The base of an isosceles triangle is 6 cm and its perimeter is 16 cm. Length of each of the equal sides is
(a) 4 cm
(b) 5 cm
(c) 3 cm
(d) 6 cm