The King of Swords symbolizes the maturity of logic. For that reason, he has a bad reputation when it comes to feelings and indeed, this King will choose to do what is objectively right rather than what feels right. The King of Swords is associated with justice, communications, decisions, emotional detachment. The Two of Pentacles is a card of change and is trying to achieve balance during or after a phase of transition or a temporary situation.
The elements of the cards are Air (King of Swords) and Earth (Two of Pentacles), a neutral combination in essence, but in many cases, the Earth card will attempt to oppose the Air Card by absorbing its power, through a gravitational pull. Therefore, the energy of the Two of Pentacles may try to block the dynamics of the King of Swords, in whatever he's trying to achieve.