The ratio of blue marbles to green marbles in the bag was 5 to 8. If there were 45 blue marbles, how many green marbles were in the bag?