I think they go by the puzzle rating and how much time you take to solve it.
Chess.com Scores

When solving puzzles how does Chess work out the scores to add to or deduct from a player's score?
https://support.chess.com/article/286-how-do-puzzles-work
When solving puzzles how does Chess work out the scores to add to or deduct from a player's score?