A mathematical model for a copolymer in an emulsion