input question: To charge the battery of a smartphone,

output answer: you should plug a USB cable in a power supply, plug the supply in an outlet, plug the cable into the wireless charging pad and lay the phone on it.

input question: To maintain the quality of an air mattress,

output answer: always wash it after each use.

input question: To kill hornets in a hornets nest,

output answer:
spray the hornets with a hornet killer.