How can you by using a matrix, find the optimal strategies for each player in the prisoner dilemma, and calculate the odds of them choosing that option?

╔══════╦═══════╦══════╗
║ ║ Confess ║ Deny ║
╠══════╬═══════╬══════╣
║ Confess ║ 3y/3y ║ 10y/1y ║
╠══════╬═══════╬══════╣
║ Deny ║ 1y/10y ║ 2y/2y ║
╚══════╩═══════╩══════╝
The column player confesses with the probability of P and denies with the probability of P-1

When I try to calculate the probability for the row player, I do:
3p+1(1−p)=10p+2(1−p)

However then I get:
P=−1/6
Which doesnt work. So I wonder what did I do wrong?