How to reconcile these?
For we maintain that a man is justified by faith apart from observing the law. --Romans 3:28 You see that a person is justified by what he does and not by faith alone. --James 2:24