Solve for x\displaystyle {x}:

2x4=10\displaystyle -{2}{x}-{4}={10}

x\displaystyle {x} =  

Enter your answer as a whole number or a fraction (not a mixed number).