A jar contains 24 marbles, of which 7 are blue, 3 are red, and the rest are green. What is the ratio of blue marbles to green marbles?