New bathroom fan has 2 green wires but i do not know where to connect them
Green designates a ground (earth) wire. If the incoming wires have a ground wire (usually bare copper or green stranded insulated) attach the grounds to it with a wire nut or a crimp connector.