Answer:
Y = 18
X = 9
Step-by-step explanation:
all the steps are in the picture. comment if you have any doubts.