Goal and options: How to re-purpose an old, thrift-store lamp.
output answer: An old, thrift-store lamp can easily be repurposed by careful disassembly to reach the portions you wish to re-use, such as the cord and light socket, being careful to make sure the lamp is unplugged when you are removing the old plug, then replacing the salvaged parts in a new fixture such as a chunk of wood.

Goal and options: To hang a magnet on a wall, you can
output answer: Attach the magnet to something metal in the wall, like a bolt

Goal and options: How can I get the bathroom floor clean?
output answer:
Use a mop with some cleaner to clean the floor.