How to fill in gap between shoe molding and baseboard?

I think I need to seal this gaps as ants are coming in from there. I’m not handy at all, so if anyone can please tell me what I need to buy to seal this, I’d appreciate it. Links would be very helpful too. Thank you!