if x is to be chosen at random from the integers between 1 to 6 , inclusive , and y is to be chosen at random from the integers between 7 and 11 , inclusive , what is the probability that x + y will be even ?
"x + y will be even if x and y are both even or both odd . p ( x and y are both even ) = 3 / 6 * 2 / 5 = 1 / 5 p ( x and y are both odd ) = 3 / 6 * 3 / 5 = 3 / 10 p ( x + y is even ) = 1 / 5 + 3 / 10 = 1 / 2 the answer is a ."
divide(add(multiply(const_2, const_2), multiply(const_3, const_2)), multiply(6, subtract(6, 1)))