You correctly quoted James: “You see that a man is justified by works and not by faith alone” (Jas. 2:24), but I cannot find your Pauline quote anywhere in the Bible. In fact, unless I am mistaken, the phrase “faith alone” only appears in James. It is possible that you are using a Lutheran Bible, or one based on his translation. It is well known and fully documented that Luther inserted the word “alone” into Rom 3:28 to give credence to his doctrine of sola fide. Fortunately for the faithful, Luther was unable to unilaterally alter Sacred Scripture sufficiently to support this false teaching.
“‘Not everyone who says to me, “Lord, Lord,” shall enter the kingdom of heaven, but he who does the will of my Father who is in heaven’” (Matt. 7:21).
“‘Why do you call me “Lord, Lord,” and not do what I tell you?’” (Luke 6:46).
“For he will render every man according to his works . . .” (Rom. 2:6-8).
“For it is not the hearers of the law who are righteous before God, but the doers of the law who will be justified” (Rom. 2:13).
"For if we sin deliberately after receiving the knowledge of the truth, there no longer remains a sacrifice for sins, but a fearful prospect of judgments . . . (Heb. 10:26-27).
“What does it profit, my brethren, if a man says he has faith but has not works? Can his faith save him?” (Jas. 2:14).
“So faith by itself, if it has no works, is dead” (Jas. 2:17).
"But some one will say, ‘You have faith and I have works.’ Show me your faith apart from your works, and I by my works will show you my faith. . . .Do you want to be shown, you foolish fellow, that faith apart from works is barren? (Jas. 2:18-20).
It is very true that we are not saved by works alone, but neither are we saved by faith alone. Scripure is very clear, it takes both.