Pillows have been used for centuries to provide comfort and support during sleep and have played an important role in…