Since more than half of each row of cups must contain beans, each row will need at least five beans. This means that at least two of the empty cups in the first row and at least four of the empty cups in the second row must have beans added to them.
For the game operator to have the advantage over the player, the probability that the two cups selected will both contain beans must be less than 50%. The probability that the cups will both contain beans is the product of the probabilities of the cup from each row containing a bean. Adding beans to two of the empty cups in the first row and four of the empty cups in the second row will result in the probability that both cups selected contain beans being 58⋅58=2564≈39.06%, which is less than 50%.
Add beans to two of the empty cups in the first row and four of the empty cups in the second row.