You can find out how to do something and then do it or do something and then find out what you did.
or simply: