So I don't know if you're solving the two problems together or separate but here you go.
Step-by-step explanation:
First thing you do is you can see that 8x and 10x you can add those together and get 18x. the problem now is Y=18X-4. Then you will subtract 18 from 18 because you need to get rid of X by itself. So your answer is-4x