How do you play a guitar?

You might find guitar instructions on YouTube. Give it a try.

Go to YouTube and search for "Guitar Lessons".

Consider taking lessons.