High School

June had equal lengths of yellow and green ribbons. After using 30 cm of yellow ribbon and 3.3 m of green ribbon, the remaining yellow ribbon was 5 times the length of the remaining green ribbon. What was the original length of each ribbon?