A student finished 18 of her homework problems in class. IF the ratio of the problems she finished to the problems she still had left was 6:1, how many homework problems did she have in total?