The relative odds are not really material, so much as which is more likely here, IMO. For the odds to matter you would need to include the forms of scoring, etc.
For the purpose of picking up the suit, at trick 5, you need only know which hand is more likely to hold the missing queen, not by how much.
Information available:
East preempted with H-AJ7632, 5 hcp and by trick 5 a small club and a small spade and 5 other cards.
The locations of the 2 pointed Queens and the club Jack are not known.
The ruff at trick 2 eliminated 16 of 32 possible spade distributions by defenders. It is also in the suit we would like to have used vacant spaces to figure the current probability of the location of the honor. The spade 5 is also missing and is equivalent to the 4 in this problem if West held it.
The most precise vacant spaces information known was that at one point W had 12 and E had 7. Ignoring the ruff, but including the club trick, that dropped to 11-6. Including the known play of the 4 spades, changes it to 8-5, but that excludes the restricted choice impact. So on a pure distribution probability you would play the spade ten, because the odds are better than 1:1 that west holds the Q.
What we do not know, from the original information provided is what East's minimum limits are for a weak 2 hearts bid - though they are clearly lower than Frank Stewart's

.
If E would not preempt with less than 10 hcp on that heart holding, it is 100% that E holds the Queen. If he needs a minimum of 7 it is a worse than a coin toss because he must have at least one of them. If E needs 7-10 for his bid, the odds favor playing the King. It might even be true if he needs 6, because that can only be satisfied by holding at least one of the other missing honors.
So to quote Dirty Harry..."Do you feel lucky?"
Now to apply selection bias. At the table, declarer needed to play the King. If he didn't, then this topic probably would not have been posted.