One-third of the total number of marbles in a jar are blue and green. There are 24 blue marbles and 18 green marbles. How many marbles are in the jar?