Wax stain removal on carpet and upholstery

Hi I’m wondering what I would use remove wax stain on upholstery and carpet I posted 2 pictures below I’ve never attempted a wax stain removal yet