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 10 , 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 / 4 = 1 / 4 p ( x and y are both odd ) = 3 / 6 * 2 / 4 = 1 / 4 p ( x + y is even ) = 1 / 4 + 1 / 4 = 1 / 2 the answer is a ."
divide(add(multiply(const_2, const_2), multiply(const_3, const_2)), multiply(6, subtract(6, 1)))