During the first year, the number of students in class X of a school increased by 12% and during the second year, it reduced by 9%. At the end of the second year, the number of students was 1274. What was the number of students in class X at the beginning of the first year?
A1250
B1230
C1220
D1240