A rectangle has a width of 24 inches and a height of 12 inches.

A second rectangle is proportional to the first and has a width of 6 inches.

What is the height of the second rectangle?

A. 12

B. 18

C. 3