The trump suit is decided in the bidding. The bidding takes place before the play starts. Let's say spades are trumps here.
Here,

A wins because it's the highest heart.
Here, Minnie wins with the two of spades because spades are trumps. Of course, she must be out of hearts - you always have to follow the suit of the leader.
Next, you will learn how to co-operate with your partner to win more tricks.