How do you give a picture a number value?

so im making a blackjack card game and i ran into an issue were idk how give a card lets say the 5 of hearts idk how to have it to where the image of the card can be given a number value. if anyone has made a blackjack game in the past and has blocks to help it be much appreciated

In Blackjack, is it possible for a card like an Ace to have two possible values?

try this one: