Which three measurements could be the lengths of the sides of a triangle?

A. 5 cm, 3 cm, 9 cm
B. 5 cm, 3 cm, 7 cm
C. 5 cm, 2 cm, 2 cm
D. 5 cm, 2 cm, 7 cm