High School

Madam Siti bought equal lengths of red and yellow ribbons. After she used 836 cm of the red ribbon, the length of the yellow ribbon was 5 times the length of the remaining red ribbon. What was the original total length of the two ribbons?