Say Suzie earns 6 and makes 9 to the burger joint. If you replace Suzie with a machine the machine can make 18 to the burger joint which makes the burger joint 9 more than by employing Suzie as a burger flipper. The burger joint then can hire Suzie back to clean the machine, still pay 6 for the guy that built the machine and take home 3 more.
This conversation seams perpetual. Mail by horse, carriage driver, telephone operator, morse operator, tailor, home cook, etc etc. on every single decade we've been saying that the new technological wave will spiral society into chaos and yet people are richer, have more time, live longer, are more educated, less violent and less famine than ever.