Usage patterns
〈事〉のやり方を教えるto teach someone how to do something
The teacher taught me how to cook.
やり方を変えるto change one's method or approach
I decided to change the way I do my job.
〈人〉のやり方に従うto follow someone's way of doing things
The newcomer followed his senior's method.
やり方が悪いto have a bad or wrong approach
You failed because your approach was bad.
やり方を覚えるto learn or memorize a method
It took time to learn how to use the new machine.