2/3=x/12

To get from 3 to 12 on the bottom, what number do you multiply by? Multiply that by the 2 (on the top).

2/3 = x/12.

Cross multiply:
3x = 24
x = 24/3 = 8.