Calculate which coins to use for a given change