euclaise/mathqa_programs huggingface dataset:
Problem: working individually , emma can wrap presents for 6 hours and troy can wrap presents in 8 hours . if emma and troy work together but independently at the task for 2 hours , at which point troy leaves , how many remaining hours will it take emma to complete the task alone ?
Options: a ) 30 / 12 , b ) 5 / 12 , c ) 3 / 4 , d ) 2 / 12 , e ) 3 / 5
Rationale: in first 2 hrs troy will finish 2 / 8 = 1 / 4 of work and emma will finish 2 / 6 work so total 1 / 4 + 1 / 3 = 7 / 12 work is finished and 1 - 7 / 12 = 5 / 12 work remaining . now emma will take ( 5 / 12 ) * 6 = 30 / 12 hrs to finish it . so answer is a .
Answer: a
Python program:
a = 1/(6)
b = 2 * a
c = 1/(8)
d = 2 * c
e = b + d 
f = 1 - e
g = 1/(6)
h = f / g
Problem: the length of a rectangular plot is 20 metres more than its breadth . if the cost of fencing the plot @ rs . 26.50 per metre is rs . 8480 , what is the length of the plot in metres ?
Options: a ) 20 , b ) 200 , c ) 300 , d ) 90 , e ) 140
Rationale: "let length of plot = l meters , then breadth = l - 20 meters and perimeter = 2 [ l + l - 20 ] = [ 4 l - 40 ] meters [ 4 l - 40 ] * 26.50 = 8480 [ 4 l - 40 ] = 8480 / 26.50 = 320 4 l = 360 l = 360 / 4 = 90 meters . answer : d"
Answer: d
Python program:
a = 8480 / 26
b = a / 2
c = 2 * 20
d = b - c
Problem: a certain electric - company plan offers customers reduced rates for electricity used between 8 p . m . and 8 a . m . weekdays and 24 hours a day saturdays and sundays . under this plan , the reduced rates z apply to what fraction of a week ?
Options: a ) 1 / 2 , b ) 5 / 8 , c ) 9 / 14 , d ) 16 / 21 , e ) 9 / 10
Rationale: number of hours between 8 pm to 8 am = 12 number of hours with reduced rates = ( 12 * 5 ) + ( 24 * 2 ) hours with reduced rates z / total number of hours in a week = ( 12 * 5 ) + ( 24 * 2 ) / ( 24 * 7 ) = 108 / ( 24 * 7 ) = 9 / 14 answer : c
Answer: c
Python program:
a = 24 / 2
b = 2 + 3 
c = a * b
d = 24 * 2
e = c + d 
f = 3 + 4 
g = 24 * f
h = e / g
Problem: the ratio of the volumes of two cubes is 125 : 216 . what is the ratio of their total surface areas ?
Options: a ) 13 : 18 , b ) 8 : 12 , c ) 1 : 12 , d ) 8 : 17 , e ) 1 : 11
Rationale: "ratio of the sides = ³ √ 125 : ³ √ 216 = 5 : 6 ratio of surface areas = 52 : 62 = 13 : 18 answer : a"
Answer: a
Python program:
a = 125 / 216
b = 1 / 3
c = a ** b
Problem: the average weight of d , e and f is 42 kg . if the average weight of d and e be 35 kg and that of e and f be 41 kg , what is the weight of e ?
Options: a ) 23 kg , b ) 24 kg , c ) 25 kg , d ) 26 kg , e ) 27 kg
Rationale: let the weight of d , e and f are a , b and c respectively . average weight of d , e and f = 42 a + b + c = 42 × 3 = 126 - - - equation ( 1 ) average weight of d and e = 35 a + b = 35 × 2 = 70 - - - equation ( 2 ) average weight of e and f = 41 b + c = 41 × 2 = 82 - - - equation ( 3 ) equation ( 2 ) + equation ( 3 ) - equation ( 1 ) = > a + b + b + c - ( a + b + c ) = 70 + 82 - 126 = > b = 152 - 126 = 26 weight of b = 26 kg answer : d
Answer: d
Python program:
a = 35 * 2
b = 41 * 2
c = a + b 
d = 42 * 3
e = c - d
Problem: two trains 121 meters and 165 meters in length respectively are running in opposite directions , one at the rate of 75 km and the other at the rate of 65 kmph . in what time will they be completely clear of each other from the moment they meet ?
Options: a ) 7.19 , b ) 7.17 , c ) 7.2 , d ) 7.35 , e ) 7.11
Rationale: "t = ( 121 + 165 ) / ( 75 + 65 ) * 18 / 5 t = 7.35 answer : d"
Answer: d
Python program:
a = 121 + 165 
b = 75 + 65 
c = b * const_0_2778
d = a / c
Problem: find the smallest number which when divided by 12 and 15 leaves respective remainders of 8 and 11 .
Options: a ) 87 , b ) 97 , c ) 27 , d ) 21 , e ) 56
Rationale: "let ' n ' is the smallest number which divided by 12 and 15 leaves respective remainders of 8 and 11 . required number = ( lcm of 12 and 15 ) - ( common difference of divisors and remainders ) = ( 60 ) - ( 4 ) = 56 . answer : e"
Answer: e
Python program:
a = 12 * 15
b = 10 + 1 
c = a - b
Problem: a merchant marks his goods up by 20 % and then offers a discount of 10 % on the marked price . what % profit does the merchant make after the discount ?
Options: a ) 8 % , b ) 10 % , c ) 21 % , d ) 15 % , e ) 17 %
Rationale: "let the price be 100 . the price becomes 120 after a 20 % markup . now a discount of 10 % on 120 . profit = 108 - 100 8 % answer a"
Answer: a
Python program:
a = 20 + 100 
b = 20 + 100 
c = b * 10
d = c / 100
e = a - d
f = e - 100
Problem: a batsman in his 20 th innings makes a score of 90 , and thereby increases his average by 2 . what is his average after the 20 th innings ? he had never been ’ not out ’ .
Options: a ) 52 , b ) 37 , c ) 39 , d ) 43 , e ) 42
Rationale: "average score before 20 th innings = 90 - 2 × 20 = 50 average score after 20 th innings = > 50 + 2 = 52 answer : a"
Answer: a
Python program:
a = 2 * 20
b = 90 - a
c = b + 2
Problem: s ( n ) is a n - digit number formed by attaching the first n perfect squares , in order , into one integer . for example , s ( 1 ) = 1 , s ( 2 ) = 14 , s ( 3 ) = 149 , s ( 4 ) = 14916 , s ( 5 ) = 1491625 , etc . how many digits are in s ( 99 ) ?
Options: a ) 350 , b ) 353 , c ) 354 , d ) 356 , e ) 357
Rationale: "focus on the points where the number of digits in squares change : 1 , 2 , 3 - single digit squares . first 2 digit number is 10 . 4 , 5 , . . . 9 - two digit squares . to get 9 , the last number with two digit square , think that first 3 digit number is 100 which is 10 ^ 2 . so 9 ^ 2 must be the last 2 digit square . 10 , 11 , 12 , . . . 31 - three digit squares . to get 31 , think of 1000 - the first 4 digit number . it is not a perfect square but 900 is 30 ^ 2 . 32 ^ 2 = 2 ^ 10 = 1024 , the first 4 digit square . 32 - 99 - four digit squares . to get 99 , think of 10,000 - the first 5 digit number which is 100 ^ 2 . so number of digits in s ( 99 ) = 3 * 1 + 6 * 2 + 22 * 3 + 68 * 4 = 3 + 12 + 66 + 272 = 353 ; answer : b"
Answer: b
Python program:
a = const_60 + 4 
b = a + 4 
c = const_60 + 4 
d = c + 4 
e = d * 4
f = b + e 
g = 3 * 1
h = 3 * 2
i = h * 2
j = g + i 
k = f + j
Problem: the h . c . f . of two numbers is 23 and the other two factors of their l . c . m . are 10 and 12 . the larger of the two numbers is :
Options: a ) 276 , b ) 295 , c ) 322 , d ) 345 , e ) 354
Rationale: "clearly , the numbers are ( 23 x 10 ) and ( 23 x 12 ) . larger number = ( 23 x 12 ) = 276 . answer : option a"
Answer: a
Python program:
a = 23 * 12
Problem: how many figures are required to number the pages the pages of a book containing 1210 pages ?
Options: a ) 3533 , b ) 3833 , c ) 3333 , d ) 3633 , e ) 3733
Rationale: "1 to 9 = 9 * 1 = 9 10 to 99 = 90 * 2 = 180 100 to 999 = 900 * 3 = 2700 1000 to 1210 = 211 * 4 = 844 - - - - - - - - - - - 3733 answer : e"
Answer: e
Python program:
a = 1210 / 10
b = a / 10
c = b - 1
d = 1210 / 10
e = d - 1
f = 1210 / 10
g = f / 10
h = g - 1
i = e - h
j = c + i 
k = 1210 - 1
l = 1210 / 10
m = l - 1
n = k - m
o = n * 3
p = j + o
Problem: the average weight of a , b and c is 75 kg . if the average weight of a and b be 88 kg and that of b and c be 72 kg , then the weight of b is :
Options: a ) 60 kg , b ) 59 kg , c ) 62 kg , d ) 63 kg , e ) 61 kg
Rationale: "explanation let a , b , c represent their respective weights . then , we have : a + b + c = ( 75 x 3 ) = 225 â € ¦ . ( i ) a + b = ( 88 x 2 ) = 176 â € ¦ . ( ii ) b + c = ( 72 x 2 ) = 144 â € ¦ . ( iii ) adding ( ii ) and ( iii ) , we get : a + 2 b + c = 288 â € ¦ . ( iv ) subtracting ( i ) from ( iv ) , we get : b = 63 . b â € ™ s weight = 63 kg . answer d"
Answer: d
Python program:
a = 88 * 2
b = 72 * 2
c = a + b 
d = 75 * 3
e = c - d
Problem: a and b are mixed together in the ratio 9 : 11 . what is the weight of mixture , if 26.1 kg of a has been consumed in it ?
Options: a ) 56 , b ) 45 , c ) 58.2 , d ) 58 , e ) 46
Rationale: explanation : for 9 kg a , mixture = ( 9 + 11 ) kg . for 26.1 kg a , mixture = ( ( 20 / 9 ) x 26.1 ) kg = 58 kg . answer : d
Answer: d
Python program:
a = 26 / 1
b = 11 * a
c = b + 26
Problem: find the constant k so that : - x 2 - ( k + 12 ) x - 8 = - ( x - 2 ) ( x - 4 )
Options: a ) 11 , b ) 12 , c ) 18 , d ) 14 , e ) 15
Rationale: "- x 2 - ( k + 12 ) x - 8 = - ( x - 2 ) ( x - 4 ) : given - x 2 - ( k + 12 ) x - 8 = - x 2 + 6 x - 8 - ( k + 12 ) = 6 : two polynomials are equal if their corresponding coefficients are equal . k = - 18 : solve the above for k correct answer c"
Answer: c
Python program:
a = 4 + 2 
b = 12 + a
Problem: last year , company x paid out a total of $ 1 , 050,000 in salaries to its 31 employees . if no employee earned a salary that is more than 20 % greater than any other employee , what is the lowest possible salary that any one employee earned ?
Options: a ) $ 10,000 , b ) $ $ 28 , 378.37 , c ) $ 42,000 , d ) $ 50,000 , e ) $ 60,000
Rationale: "employee 1 earned $ x ( say ) employee 2 will not earn more than $ 1.2 x therfore , to minimize the salary of any one employee , we need to maximize the salaries of the other 30 employees ( 1.2 x * 30 ) + x = 1 , 050,000 solving for x = $ 28 , 378.37 answer b"
Answer: b
Python program:
a = 20 / 100
b = a + 1 
c = 1000 + const_60 
d = c - 10
e = d * 1000
f = b * e
g = 31 - 1
h = 20 / 100
i = h + 1 
j = g * i
k = j + 1 
l = f / k
m = 20 / 100
n = m + 1 
o = l / n
p = o / 100
q = 100 * 2
r = q + 3 
s = p + r
Problem: if n is a positive integer and the product of all integers from 1 to n , inclusive , is a multiple of 350 , what is the least possible value of n ?
Options: a ) 5 , b ) 7 , c ) 12 , d ) 13 , e ) 14
Rationale: "350 = 2 * 5 * 5 * 7 so the least value forncan be 7 . b"
Answer: b
Python program:
a = 350 / 2
b = a / 3
c = b / 4
d = 10 / 2
e = c / d
Problem: the duplicate ratio of 2 : 3 is ?
Options: a ) 4 : 9 , b ) 1 : 4 , c ) 1 : 8 , d ) 1 : 18 , e ) 1 : 13
Rationale: "2 ^ 2 : 3 ^ 2 = 4 : 9 answer : a"
Answer: a
Python program:
a = 2 ** 2
b = 3 ** 2
c = a / b
Problem: the water level in a rectangular swimming pool measuring 40 feet by 25 feet is to be lowered by 6 inches . how many gallons of water must be removed ? ( 1 cu ft = 7.5 gallons )
Options: a ) 100 , b ) 250 , c ) 750 , d ) 3750 , e ) 5625
Rationale: "6 inches = 1 / 2 feet ( there are 12 inches in a foot . ) , so 40 * 25 * 1 / 2 = 500 feet ^ 3 of water must be removed , which equals to 500 * 7.5 = 3750 gallons . answer : d ."
Answer: d
Python program:
a = 10 + 2 
b = 6 / a
c = volume_rectangular_prism * (
Problem: 3 maths classes : a , b and c take an algebra test . the average score of class a is 83 . the average score of class b is 76 . the average score of class c is 85 . the average score of class a and b is 79 and average score of class b and c is 81 . what is the average score of classes a , b , c ?
Options: a ) 81.8 , b ) 81.1 , c ) 81.2 , d ) 81.5 , e ) 81.9
Rationale: let the number of students in classes a , b and c be p , q and r respectively . then , total score of a = 83 p , total score of b = 76 q , total score of c = 85 r . also given that , ( 83 p + 76 q ) / ( p + q ) = 79 = > 4 p = 3 q . ( 76 q + 85 r ) / ( q + r ) = 81 = > 4 r = 5 q , = > q = 4 p / 3 and r = 5 p / 3 therefore , average score of a , b , c = ( 83 p + 76 q + 85 r ) / ( p + q + r ) = 978 / 12 = 81.5 answer : d
Answer: d
Python program:
a = 1 / 2
b = 81 + a
Problem: at a certain resort , each of the 39 food service employees is trained to work in a minimum of 1 restaurant and a maximum of 3 restaurants . the 3 restaurants are the family buffet , the dining room , and the snack bar . exactly 19 employees are trained to work in the family buffet , 18 are trained to work in the dining room , and 12 are trained to work in the snack bar . if 4 employees are trained to work in exactly 2 restaurants , how many employees are trained to work in all 3 restaurants ?
Options: a ) 2 , b ) 3 , c ) 4 , d ) 5 , e ) 6
Rationale: "39 = 19 + 18 + 12 - 4 - 2 x 2 x = 19 + 18 + 12 - 4 - 39 = 45 - 39 = 6 x = 3 answer : b"
Answer: b
Python program:
a = 19 + 18 
b = a + 12 
c = b - 4
d = c - 39
e = d / 2
Problem: the length of rectangle is thrice its breadth and its perimeter is 40 m , find the area of the rectangle ?
Options: a ) 432 , b ) 212 , c ) 75 , d ) 992 , e ) 212
Rationale: "2 ( 3 x + x ) = 40 l = 15 b = 5 lb = 15 * 5 = 75 answer : c"
Answer: c
Python program:
a = 3 * 2
b = 1 * 2
c = a + b 
d = 40 / c
e = d * 3
f = 3 * 2
g = 1 * 2
h = f + g 
i = 40 / h
j = e * i
Problem: a 25 cm wide path is to be made around a circular garden having a diameter of 4 meters . approximate area of the path is square meters is ?
Options: a ) 3.34 sq m , b ) 98.8 sq m , c ) 67.8 sq m , d ) 27.9 sq m , e ) 19.9 sq m
Rationale: "area of the path = area of the outer circle - area of the inner circle = ∏ { 4 / 2 + 25 / 100 } 2 - ∏ [ 4 / 2 ] 2 = ∏ [ 2.252 - 22 ] = ∏ ( 0.25 ) ( 4.25 ) { ( a 2 - b 2 = ( a - b ) ( a + b ) } = ( 3.14 ) ( 1 / 4 ) ( 17 / 4 ) = 53.38 / 16 = 3.34 sq m answer : a"
Answer: a
Python program:
a = 4 / 2
b = 25 / 100
c = a + b 
d = circle_area - (
Problem: a train is 700 meter long is running at a speed of 21 km / hour . in what time will it pass a bridge of 130 meter length ?
Options: a ) 142.286 , b ) 251.228 , c ) 34 , d ) 200 , e ) 150.627
Rationale: "speed = 21 km / hr = 21 * ( 5 / 18 ) m / sec = 35 / 6 m / sec total distance = 700 + 130 = 830 meter time = distance / speed = 830 * ( 6 / 35 ) = 142.286 seconds . answer : a"
Answer: a
Python program:
a = 700 + 130 
b = 21 * 1000
c = b / 3600
d = a / c
Problem: a coin is tossed 4 times . what is the probability of getting exactly 3 heads ?
Options: a ) 1 / 2 , b ) 1 / 4 , c ) 1 / 8 , d ) 1 / 16 , e ) 3 / 16
Rationale: the number of possible outcomes is 2 ^ 4 = 16 there are 4 ways to get exactly 3 heads . p ( exactly 3 heads ) = 4 / 16 = 1 / 4 the answer is b .
Answer: b
Python program:
a = 1 / 2
b = a ** 3
c = math.comb(4, 3)
d = 1 / 2
e = c * d
f = b * e
Problem: the ratio of pens to pencils is 5 to 6 . there are 4 more pencils than pens . how many pencils are there ?
Options: a ) 12 , b ) 16 , c ) 20 , d ) 24 , e ) 28
Rationale: "let the number of pens be 5 x and the number of pencils be 6 x . 6 x - 5 x = 4 x = 4 the number of pencils is 24 . the answer is d ."
Answer: d
Python program:
a = 4 * 5
b = a + 4
Problem: a train passes a station platform in 42 sec and a man standing on the platform in 12 sec . if the speed of the train is 54 km / hr . what is the length of the platform ?
Options: a ) 227 , b ) 450 , c ) 460 , d ) 480 , e ) 171
Rationale: "speed = 54 * 5 / 18 = 15 m / sec . length of the train = 15 * 12 = 180 m . let the length of the platform be x m . then , ( x + 180 ) / 42 = 15 = > x = 450 m . answer : b"
Answer: b
Python program:
a = 54 * const_0_2778
b = 12 * a
Problem: how many pieces of 75 cm can be cut from a rope 45 meters long ?
Options: a ) 30 , b ) 40 , c ) 60 , d ) none , e ) can not be determined
Rationale: "explanation : total pieces of 75 cm that can be cut from a rope of 45 meters long is = ( 45 meters ) / ( 75 cm ) = ( 45 meters ) / ( 0.75 meters ) = 60 answer : c"
Answer: c
Python program:
a = 45 / 75
Problem: in what ratio mental a at rs . 68 per kg be mixed with another metal at rs . 96 per kg so that cost of alloy ( mixture ) is rs . 75 per kg ?
Options: a ) 5 : 8 , b ) 3 : 1 , c ) 3 : 7 , d ) 9 : 5 , e ) 9 : 8
Rationale: "( 96 - 75 ) / ( 75 - 68 ) = 21 / 7 = 3 / 1 answer : b"
Answer: b
Python program:
a = 96 - 75
b = 96 - 68
c = a / b
d = 96 - 75
e = 96 - 68
f = d / e
g = 1 - f
h = c / g
Problem: a shopkeeper fixes the marked price of an item 30 % above its cost price . the percentage of discount allowed to gain 6 % is
Options: a ) 18.45 % , b ) 18.46 % , c ) 18.47 % , d ) 18.48 % , e ) none of these
Rationale: "explanation : let the cost price = rs 100 then , marked price = rs 130 required gain = 6 % , so selling price = rs 106 discount = 130 - 106 = 24 discount % = ( 24 / 130 ) * 100 = 18.46 % option b"
Answer: b
Python program:
a = 6 + 100 
b = 30 + 100 
c = a / b
d = c * 100
e = 100 - d
Problem: the product of two numbers is 120 and the sum of their squares is 289 . find the sum ?
Options: a ) 23 , b ) 20 , c ) 15 , d ) 26 , e ) 28
Rationale: "nos a and b ab = 120 and a 2 + b 2 = 289 ( a + b ) 2 = 529 a + b = root ( 529 ) = 23 answer a"
Answer: a
Python program:
a = 2 * 120
b = 289 - a
c = math.sqrt(b)
d = c ** 2
e = 4 * 120
f = d + e 
g = math.sqrt(f)
Problem: find the sum of first 26 natural numbers
Options: a ) 470 , b ) 468 , c ) 465 , d ) 351 , e ) 485
Rationale: "explanation : sum of n natural numbers = n ( n + 1 ) / 2 = 26 ( 26 + 1 ) / 2 = 26 ( 27 ) / 2 = 351 answer : option d"
Answer: d
Python program:
a = 26 / 2
b = a / 2
c = b / 2
d = c / 2
e = d / 2
f = 26 / e
g = f / 2
h = 26 / 2
i = h / 2
j = i / 2
k = j / 2
l = k / 2
m = 26 / l
n = m / 2
o = math.sqrt(n)
p = 1 + o 
q = g + p
Problem: in an electric circuit , two resistors with resistances m and n are connected in parallel . in this case , if p is the combined resistance of these two resistors , then the reciprocal of p is equal to the sum of the reciprocals of m and n . what is p in terms of m and n ?
Options: a ) ( n - m )
b ) mn / ( m + n )
c ) ( nm )
d ) ( n - m ) / ( m + n )
e ) none of these
Rationale: the wording is a bit confusing , though basically we are told that 1 / p = 1 / m + 1 / n , from which it follows that p = mn / ( m + n ) . answer : b
Answer: b
Python program:
a = 1 * 3
b = 1 + 3 
c = a / b
Problem: x + ( 1 / x ) = 3 find x ^ 2 + ( 1 / x ^ 2 )
Options: a ) 2.25 , b ) 7 , c ) 4.25 , d ) 5.25 , e ) 6.25
Rationale: "squaring on both sides ( x + 1 / x ) ^ 2 = 3 ^ 2 x ^ 2 + 1 / x ^ 2 = 9 - 2 x ^ 2 + 1 / x ^ 2 = 7 answer : b"
Answer: b
Python program:
a = 3 ** 2
b = a - 2
Problem: a certain debt will be paid in 52 installments from january 1 to december 31 of a certain year . each of the first 8 payments is to be $ 410 ; each of the remaining payments is to be $ 65 more than each of the first 8 payments . what is the average ( arithmetic mean ) payment that will be made on the debt for the year ?
Options: a ) 443 , b ) 450 , c ) 465 , d ) 468 , e ) 475
Rationale: "total number of installments = 52 payment per installment for the first 8 installments = 410 payment per installment for the remaining 32 installments = 410 + 65 = 475 average = ( 8 * 410 + 44 * 475 ) / 52 = 465 answer c"
Answer: c
Python program:
a = 8 * 410
b = 410 + 65 
c = 52 - 8
d = b * c
e = a + d 
f = e / 52
Problem: the sum of the fourth and twelfth term of an arithmetic progression is 20 . what is the sum of the first 20 terms of the arithmetic progression ?
Options: a ) 300 , b ) 120 , c ) 150 , d ) 170 , e ) 200
Rationale: "n th term of a . p . is given by a + ( n - 1 ) d 4 th term = a + 3 d 12 th term = a + 11 d given a + 3 d + a + 11 d = 20 - - > 2 a + 14 d = 20 - - > a + 7 d = 10 sum of n term of a . p = n / 2 [ 2 a + ( n - 1 ) d ] subsitiuing n = 20 . . . we get 20 / 2 [ 2 a + 14 d ] = 20 [ a + 7 d ] = 20 * 10 = 200 . . . answer is e . . ."
Answer: e
Python program:
a = 20 * 20
b = a / 2
Problem: a alone can finish a work in 10 days which b alone can finish in 15 days . if they work together and finish it , then out of a total wages of rs . 3100 , a will get :
Options: a ) rs . 1200 , b ) rs . 1500 , c ) rs . 1860 , d ) rs . 2000 , e ) none of these
Rationale: explanation : ratio of working days of a : b = 10 : 15 therefore , their wages ratio = reverse ratio = 15 : 10 therefore , a will get 15 units of ratio total ratio = 25 1 unit of ratio = 3100 / 25 = 124 so , a ’ s amount = 124 × 15 = rs . 1860 . answer : option c
Answer: c
Python program:
a = 15 * 2
b = a / 10
c = 15 * 2
d = c / 10
e = 15 * 2
f = e / 15
g = d + f 
h = b / g
i = h * 3100
Problem: crazy eddie has a key chain factory . eddie managed to decrease the cost of manufacturing his key chains while keeping the same selling price , and thus increased the profit from the sale of each key chain from 40 % of the selling price to 50 % of the selling price . if the manufacturing cost is now $ 50 , what was it before the decrease ?
Options: a ) $ 20 , b ) $ 40 , c ) $ 50 , d ) $ 80 , e ) $ 60
Rationale: "deargoodyear 2013 , i ' m happy to help . this is a relatively straightforward problem , not very challenging . btw , crazy eddiewas the actually name of an electronics chain on the east coast of the usa back in the 1970 s . manufacturing now is $ 50 . they now are making a 50 % profit , so the selling price must be $ 100 . they had this same selling price , $ 100 , before they made the change , and had a profit of 40 % , so the manufacturing must have been $ 60 . answer = ( e ) ."
Answer: e
Python program:
a = 50 / 100
b = 50 / a
c = 50 / 100
d = 50 / c
e = 40 / 100
f = d * e
g = b - f
Problem: while driving from a - ville to b - town , harriet drove at a constant speed of 110 kilometers per hour . upon arriving in b - town , harriet immediately turned and drove back to a - ville at a constant speed of 140 kilometers per hour . if the entire trip took 5 hours , how many minutes did it take harriet to drive from a - ville to b - town ?
Options: a ) 138 , b ) 148 , c ) 150 , d ) 162 , e ) 168
Rationale: "5 hr = 300 min . if harriet spend equal hrs on each leg she will spend 150 min on each . since speed a - b is less than speed b - a and distance on each leg is the same , time spent on a - b is more than 150 min , which mean we can eliminate ans . a , b and c . now let plug in ans . d or e and verify which one give same distance on each leg . e . t = 168 min * leg a - b - - - > d = 110.168 / 60 = 18480 / 60 * leg b - a - - - - > d = 140 * 132 / 60 = 18480 / 60 so the correct ans . ise"
Answer: e
Python program:
a = 110 * 5
b = 110 + 140 
c = a / b
d = 5 - c
e = d * const_60
Problem: if the average of 1 , 2 , 4 , 5 , 6 , 9 , 9 , 10 , 12 and x is 7 , what is the value of x ?
Options: a ) 7 , b ) 9 , c ) 11 , d ) 12 , e ) 13
Rationale: "sum of the deviations of the numbers in the set from the mean is always zero 1 , 2 , 4 , 5 , 6 , 9 , 9 , 10 , 12 mean is 7 so the list is - 6 - 5 - 3 - 2 - 1 + 2 + 2 + 3 + 5 . . . this shud total to zero but this is - 5 , hence we need a number that is 5 more than the mean to get a + 5 and make it zero hence the answer is 7 + 5 = 12 d"
Answer: d
Python program:
a = 7 * 10
b = 1 + 2 
c = b + 4 
d = c + 5 
e = d + 6 
f = e + 9 
g = f + 9 
h = g + 10 
i = h + 12 
j = a - i
Problem: a jogger running at 9 km / hr along side a railway track is 200 m ahead of the engine of a 200 m long train running at 45 km / hr in the same direction . in how much time will the train pass the jogger ?
Options: a ) 89 , b ) 20 , c ) 40 , d ) 88 , e ) 34
Rationale: "speed of train relative to jogger = 45 - 9 = 36 km / hr . = 36 * 5 / 18 = 10 m / sec . distance to be covered = 200 + 200 = 360 m . time taken = 400 / 10 = 40 sec . answer : option c"
Answer: c
Python program:
a = 200 + 200 
b = 45 - 9
c = 10 / 2
d = 45 - 9
e = d / 2
f = c / e
g = b * f
h = a / g
Problem: yesterday ' s closing prices of 2,200 different stocks listed on a certain stock exchange were all different from today ' s closing prices . the number of stocks that closed at a higher price today than yesterday was 20 percent greater than the number that closed at a lower price . how many of the stocks closed at a higher price today than yesterday ?
Options: a ) 484 , b ) 726 , c ) 1,200 , d ) 1,320 , e ) 1,694
Rationale: "lets consider the below - the number of stocks that closed at a higher price = h the number of stocks that closed at a lower price = l we understand from first statement - > h + l = 2200 - - - - ( 1 ) we understand from second statement - > h = ( 120 / 100 ) l = > h = 1.2 l - - - - ( 2 ) solve eq ( 1 ) ( 2 ) to get h = 1200 . c is my answer ."
Answer: c
Python program:
a = 20 * 100
b = a - 10
c = b - 10
d = 20 / 100
e = 1 + d 
f = e + 1 
g = c / f
h = 20 / 100
i = 1 + h 
j = g * i
Problem: the dimensions of an open box are 50 cm , 40 cm and 23 cm . its thickness is 2 cm . if 1 cubic cm of metal used in the box weighs 0.5 gms , find the weight of the box .
Options: a ) 8.04 kg
b ) 8.14 kg
c ) 8.24 kg
d ) 9.04 kg
e ) none of these
Rationale: explanation : volume of the metal used in the box = external volume - internal volume = [ ( 50 x 40 x 23 ) - ( 44 x 34 x 20 ) ] cm 3 = 16080 cm 3 weight of the metal = [ ( 16080 x 0.5 ) / 1000 ] kg = 8.04 kg . answer : a
Answer: a
Python program:
a = 50 * 40
b = a * 23
c = 2 * 3
d = 50 - c
e = 2 * 3
f = 40 - e
g = d * f
h = 23 - 3
i = g * h
j = b - i
k = j * 0
l = k / 1000