Skirting board gaps help

What's the best way to fill / fix these gaps? Much appreciated ladies and gents!