if 1 / 8 of a pencil is black 1 / 2 of the remaining is white and the remaining 7 / 2 is blue find the total length of the pencil ?
( 1 / 8 ) p + ( 1 / 2 ) p + ( 7 / 2 ) = p on solving the above for p we get 9.333 now checking for the answer : 9.333 / 8 = 1.166 cm 9.333 / 2 = 4.665 cm now 1.166 + 4.665 + ( 7 / 2 ) = 9.33 cm answer : d
add(divide(multiply(divide(7, 2), add(divide(1, 8), divide(1, 2))), subtract(const_1, add(divide(1, 8), divide(1, 2)))), divide(7, 2))