I'll put you on the right track...
There's 52 cards in the deck and let's suppose the following
1-13 = SPADES A,2,3...J,Q,K
14-26 = CLUBS A,2,3...J,Q,K
27-39 = HEARTS A,2,3...J,Q,K
40-52 = DIAM. A,2,3...J,Q,K
You find the suit by comparison: card 32 = HEART, card 5 = SPADE. You find the value by subtracting 13 from it until it's value is 13 or less:
So, CARD 48 (- 13 - 13 - 13 = 9) is the 9 of Diamonds.
Now run with it!
There's 52 cards in the deck and let's suppose the following
1-13 = SPADES A,2,3...J,Q,K
14-26 = CLUBS A,2,3...J,Q,K
27-39 = HEARTS A,2,3...J,Q,K
40-52 = DIAM. A,2,3...J,Q,K
You find the suit by comparison: card 32 = HEART, card 5 = SPADE. You find the value by subtracting 13 from it until it's value is 13 or less:
So, CARD 48 (- 13 - 13 - 13 = 9) is the 9 of Diamonds.
Now run with it!