Noticing that the meaning of a certain verse or passage may be equivocal is a key to resolving the problem of apparent contradictions. If so, then choosing one of the alternate meanings could remove the apparent contradiction. Let me give you an example. In the first case the order would be faith, then baptism, resulting in salvation. In the second case the order would be faith, resulting in salvation, followed by baptism.
Verses seem to support both sides.
The order here appears to be faith, then baptism, resulting in salvation. This verse seems very straightforward. To some, simply quoting it is enough. And all the circumcised believers who had come with Peter were amazed, because the gift of the Holy Spirit had been poured out upon the Gentiles also. For they were hearing them speaking with tongues and exalting God.