I have two different methods to solve a problem, and I intend to specify this in a passive sentence by using the word verb.
This problem can be solved in two different ways.
This problem can be solved by two different ways.
Which one is more correct?
I think the second one is more conventional.