A = matrix(c(1, 1, 0.07, 0.09), nrow=2, ncol=2, byrow=TRUE) b = c(1, 0) x = solve(A, b) print(x) P = sum(x * c(93.2, 101.0)) print(P)