firstly the limiting reactant should be identified. Limiting reactant is the reactant that is in limited supply, the amount of product formed depends on the moles present of the limiting reactant.
the stoichiometry of x to y = 1:2
1 mole of x reacts with 2 moles of y
if x is the limiting reactant, there are 3 moles of x, then 6 moles of y should react, however there are only 4 moles of y. Therefore y is the limiting reactant and x is in excess.
4 moles of y reacts with 2 moles of x
since there are 3 moles of x initially and only 2 moles are used up, excess amount of x is 1 mol thats in excess.