How do you write an expression for the mass of the residue in terms of x and y?

Did you see my first response? If you can give some details I may be able to help.