B-systems and C-systems are equivalent