When given a proportion, you can solve for a variable by cross multiplying.
Take the numerator of the first fraction and multiply it by the denominator of the second fraction, then set the product equal to the denominator of the first fraction times the numerator of the second.
12*3 = 5x
To solve for x divide both sides by 5
x = 36 / 5
x = 7.2