Turn (something) to good account

To make good use of a situation or experience.

We were able to turn our experience with the income tax office to good account when we began to look at our business practices.