How to solve chemical reactions (generally)?