Answer :

45.

12/18 = 8/x <=> 2/3 = 8/x <=> x = (3*8)/2 = 12;