John has a pack of cards numbered 1-50. He shuffled them and drew two cards at random. The first card he drew was number 10. He looked at the second card and observed that if he drew a third card, the probability was that its number 2 would be between the two he had. What was the number of the second card?