David has 36 marbles, 24 of which are black and 12 are blue. What is the ratio of black marbles to blue marbles? Write the ratio in lowest term