A students finished 8 of her homework problems in class. If the ratio of problems she finished to problems she still had left was 4:1, how many homework problems did she have in total?
A. 2
B. 4
C. 8
D. 10