if you keep rolling a pair of dice together till a sum of 5 or 7 is obtained , then what is the probability that a sum of 5 comes before a sum of 7 ?
this can be solved in a generic and complex way but let us not go into all that . there can be four ways through which the pair of dice results in a sum of 5 . there can be six ways through which the pair of dice can result in a sum of 7 . now , we want the probability of the pair of dice resulting in a sum of 5 before a sum of 7 . thus probability = 4 / ( 4 + 6 ) = 4 / 10 or 2 / 5 . correct answer is d ) 2 / 5
divide(const_4, add(const_4, const_6))