The ratio of red marbles to blue marbles in a jar is 3 to 8. There are 40 blue marbles in the jar.

How many red marbles are in the jar?

A.5

B.15

C.24

D.35