Author 
Message 
TAGS:

Hide Tags

Current Student
Joined: 06 Oct 2009
Posts: 67
Location: Mexico
Concentration: Entrepreneurship, Finance
GPA: 3.85
WE: Sales (Commercial Banking)

Martha bought several pencils. If each pencil was either a
[#permalink]
Show Tags
01 Sep 2010, 10:02
Question Stats:
73% (01:29) correct 27% (01:17) wrong based on 1221 sessions
HideShow timer Statistics
Martha bought several pencils. If each pencil was either a 23 cent pencil or a 21 pencil, how many 23 cent pencils did martha buy? (1) Martha bought a total of 6 pencils (2) The total value of the pencils Martha bought was 130 cents.
Official Answer and Stats are available only to registered users. Register/ Login.




Math Expert
Joined: 02 Sep 2009
Posts: 59124

Re: Equations
[#permalink]
Show Tags
01 Sep 2010, 10:27
Bull78 wrote: Martha bought several pencils. If each pencil was either a 23 cent pencil or a 21 pencil, how many 23 cent pencils did martha buy?
a) Martha bought a total of 6 pencils
b) The total value of the pencils Martha bought was 130 cents. This is Ctrap question. Ctrap question is the question which is obviously sufficient if we take statements together. When we see such questions we should become very suspicious. Martha bought several pencils. if each pencil was either 23 cents pencil or a 21 cents pencil. How many 23 cents pencils did Marta buy?Let \(x\) be the # of 23 cent pencils and \(y\) be the # of 21 cent pencils. Note that \(x\) and \(y\) must be an integers. Q: \(x=?\) (1) Martha bought a total of 6 pencils > \(x+y=6\). Clearly not sufficient. (2) The total value of the pencils Martha bought was 130 cents > \(23x+21y=130\). Now x and y must be an integers (as they represent the # of pencils). The only integer solution for \(23x+21y=130\) is when \(x=2\) and \(y=4\) (trial and errors). Sufficient. Answer: B. For more on this type of questions check: eunicesoldseveralcakesifeachcakesoldforeither109602.htmlmarthaboughtseveralpencilsifeachpencilwaseithera100204.htmlarentalcaragencypurchasesfleetvehiclesintwosizesa105682.htmljoeboughtonlytwentycentstampsandthirtycentstamps106212.htmlacertainfruitstandsoldapplesfor070eachandbananas101966.htmljoannaboughtonly015stampsand029stampshowmany101743.htmlatanamusementparktomboughtanumberofredtokensand126814.htmlcollectionsconfusedneedahelp81062.htmlHope it helps.
_________________




Intern
Joined: 07 Jun 2009
Posts: 19

Re: Equations
[#permalink]
Show Tags
02 Sep 2010, 02:22
amitjash wrote: Does GMAT ask trial and error questions? Yes, but only if they the range of possible numbers is small.. as is the case here. One good way to attack the statements in DS, is to prove insufficiency by getting two different values which meet the preimposed conditions e.g. in this question Quote: Statement 1 x+y = 6 we have two that are possible ..x=1,y=5 x=2,y=4 ... Therefore insufficient Quote: Statement 2 23x+21y = 130 a. to get an even sum(130), either both x and y have to be even or both have to be odd b. to get units digit of 0, 3x + y should have units digit of 0
> take possible values of x from 1 to 5.. x=1 > 3 .. y has to be odd x=2 > 6 .. y has to be even x=3 > 9 .. y has to be odd x=4 > 12 .. y has to be even x=5 > 15 .. y has to be odd the only value that fits that for x =2,y=4; On substituting in the equation 23x+21y, we get 130 > Statement 2 alone is sufficient coz we get only one possible value for x and y Hope this helps
_________________
If you like my post, consider giving me a kudos. THANKS!




Manager
Joined: 17 Mar 2010
Posts: 128

Re: Equations
[#permalink]
Show Tags
02 Sep 2010, 01:52
Does GMAT ask trial and error questions?



Intern
Joined: 24 Mar 2010
Posts: 44

Re: Equations
[#permalink]
Show Tags
02 Sep 2010, 05:01
The way I thought about this one that probably will take less time than trying to actually write out formulas, is;
1) This doesn't tell us anything about the total amount spent on the pencils so it could be 5 of 23 cent pencil and 1 of the 21 cent pencils, or 4 of the 23 cent pencils and 2 of the 21 cent pencils etc... These have different totals so 1) is sufficient.
2) 21 and 23 cents are fairly large portions of the 130 total cents spent and 23 is a prime number so I concluded that there would only be one solution to this and we could figure out how much she spend on each. This by itself would be enough to conclude B, 2) is sufficient, but to validate I used the first digits of 23 and 21, which according to 2) must add to a multiple of ten. If you write out the two equations you can deduce from this it because readily evident that you can figure out this problem with just 2)
3x+1y=10 x+y=6
Hope this helps.
Jared



Intern
Joined: 18 Nov 2010
Posts: 8

Data suff
[#permalink]
Show Tags
10 Dec 2010, 09:54
How can this problem be solved without 2 equations. How do you in fact spot such cases?
Attachments
1.docx [74.88 KiB]
Downloaded 244 times



Math Expert
Joined: 02 Sep 2009
Posts: 59124

Re: Data suff
[#permalink]
Show Tags
10 Dec 2010, 10:17
Merging similar topics. As for your question, see the solution for another similar question (discussed here: cardealerdatasufficiency105682.html?hilit=diophantine#p826606): A rental car agency purchases fleet vehicles in two sizes: a fullsize car costs $10,000, and a compact costs $9,000. How many compact cars does the agency own?(1) The agency owns 7 total cars. (2) The agency paid $66,000 for its cars. This is classic Ctrap question. Ctrap questions are the questions which are obviously sufficient if we take statements together. When we see such questions we should become very suspicious. Let # of fullsize car be F and # of compact cars be C. Question: C=? (1) The agency owns 7 total cars > F+C=7. Clearly insufficient to get C. (2) The agency paid $66,000 for its cars > 10,000F+9,000C=66,000 > 10F+9C=66. Here comes the trap: generally such kind of linear equations (ax+by=c) have infinitely many solutions for x and y, and we can not get single numerical values for the variables. But since F and C represent # of cars then they must be nonnegative integers and in this case 10F+9C=66 is no longer simple linear equation it's Diophantine equation (equations whose solutions must be integers only) and for such kind on equations there might be only one combination of x and y (F and C in out case) possible to satisfy it. When you encounter such kind of problems you must always check by trial and error whether it's the case. Now, it's quite easy to check whether 10F+9C=66 has one or more solutions. 9C=6610F so 66 minus multiple of 10 must be multiple of 9: 66 is not multiple of 9; 56 is not; 46 is not; 36 IS MULTIPLE OF 9 (F=3 and C=4); 26 is not; 16 is not and 6 is not. So only one combination of F and C satisfies equation 10F+9C=66, namely F=3 and C=4. Sufficient. Answer: B. Similar problems: gmatprep292785.html?hilit=linear%20typeHope it helps.
_________________



Veritas Prep GMAT Instructor
Joined: 16 Oct 2010
Posts: 9788
Location: Pune, India

Re: Data suff
[#permalink]
Show Tags
12 Dec 2010, 04:53
shash wrote: How can this problem be solved without 2 equations. How do you in fact spot such cases? To solve for two variables, you need two equations. But if there are constraints on the solutions (e.g. x and y should be positive integers), sometimes, one equation is enough. When you have real world examples, where they talk about number of pens, pencils etc which cannot be negative or a fraction, you need to ascertain whether one equation is enough. Check out this blog post where I have discussed in detail how to solve such problems: http://gmatquant.blogspot.com/2010/11/integralsolutionsofaxbyc.html
_________________
Karishma Veritas Prep GMAT Instructor
Learn more about how Veritas Prep can help you achieve a great GMAT score by checking out their GMAT Prep Options >



GMAT Tutor
Joined: 24 Jun 2008
Posts: 1827

Martha bought several pencils. If each pencil was either a
[#permalink]
Show Tags
12 Dec 2010, 06:09
Bull78 wrote: Martha bought several pencils. If each pencil was either a 23 cent pencil or a 21 pencil, how many 23 cent pencils did martha buy?
(1) Martha bought a total of 6 pencils
(2) The total value of the pencils Martha bought was 130 cents. You can also look at this as follows: if she bought 7 pencils, she would spend at least 7*0.21 = $1.49. If she bought 5 pencils, she would spend at most 5*0.23 = $1.15. So if she spent $1.30, as we learn from Statement 2 alone, she must have bought exactly 6 pencils. So Statement 2 is sufficient alone (once we know that she bought 6 pencils, there can only be one combination of $0.23 and $0.21 pencils that give a total cost of $1.30, since the more $0.23 pencils she buys, the greater the cost will be).
_________________
GMAT Tutor in Toronto
If you are looking for online GMAT math tutoring, or if you are interested in buying my advanced Quant books and problem sets, please contact me at ianstewartgmat at gmail.com



Manager
Joined: 31 Aug 2011
Posts: 144

Re: Martha bought several pencils. If each pencil was either a
[#permalink]
Show Tags
19 Aug 2012, 11:56
I see a nice discussion on this topic and would like to add my bits here. Trying to find a general method of solving such questions where the constraints are 1) linear equation in two variables 2) the solution is only non negative integers . Just by combining the ways used by community members for this particular question,I can say a shortcut method for such questions can be 1) express in form of a linear equation 21x + 23y = 130 . . find y 2) find max value of required variables y = 130/23 . therefore y< 6 and x <7 3) plug in values of y , 1,2,3,4,5. 4) calculate only units digit . .y = 1 => 23y ( units digit is 3) 2 (6) 3(9) 4 (2) 5(5) 5) check if an integer value of x does exist for the set of values of y, by plugging in values and calculating only units digit, the solution should follow the required constraint i.e. x<7 for y=1 not possible (units digit of 21x need to be 7) for y = 2 units digit of 21x should be 4 possible and thats one solution for y = 3 21x to end in 1 possible but not a solution because does not follow 21x + 23y = 130 ( no need to calculate can rule out as ans being to small) for y = 4 21x should end in 8 , not possible for y = 5 21x should end in 5 possible but does not follow 21x + 23y = 130 ( again no calculation required can rule out as ans being too large) can you please elaborate this sarathy : b. to get units digit of 0, 3x + y should have units digit of 0. . your equation is 23x + 21y = 130 . . this is along same lines to calculate units digit only but i guess we cannot make an equation like this because 4x + 2y can also have units digit of 0 and thats infact our solution to this problem. .
_________________
If you found my contribution helpful, please click the +1 Kudos button on the left, I kinda need some =)



Manager
Joined: 15 Aug 2013
Posts: 227

Re: Martha bought several pencils. If each pencil was either a
[#permalink]
Show Tags
16 Aug 2014, 11:49
Bunuel wrote: Bull78 wrote: Martha bought several pencils. If each pencil was either a 23 cent pencil or a 21 pencil, how many 23 cent pencils did martha buy?
a) Martha bought a total of 6 pencils
b) The total value of the pencils Martha bought was 130 cents. This is Ctrap question. Ctrap question is the question which is obviously sufficient if we take statements together. When we see such questions we should become very suspicious. Martha bought several pencils. if each pencil was either 23 cents pencil or a 21 cents pencil. How many 23 cents pencils did Marta buy?Let \(x\) be the # of 23 cent pencils and \(y\) be the # of 21 cent pencils. Note that \(x\) and \(y\) must be an integers. Q: \(x=?\) (1) Martha bought a total of 6 pencils > \(x+y=6\). Clearly not sufficient. (2) The total value of the pencils Martha bought was 130 cents > \(23x+21y=130\). Now x and y must be an integers (as they represent the # of pencils). The only integer solution for \(23x+21y=130\) is when \(x=2\) and \(y=4\) (trial and errors). Sufficient. Answer: B. For more on this type of questions check: eunicesoldseveralcakesifeachcakesoldforeither109602.htmlmarthaboughtseveralpencilsifeachpencilwaseithera100204.htmlarentalcaragencypurchasesfleetvehiclesintwosizesa105682.htmljoeboughtonlytwentycentstampsandthirtycentstamps106212.htmlacertainfruitstandsoldapplesfor070eachandbananas101966.htmljoannaboughtonly015stampsand029stampshowmany101743.htmlatanamusementparktomboughtanumberofredtokensand126814.htmlcollectionsconfusedneedahelp81062.htmlHope it helps. Hi Bunuel, Interesting question. I landed on this after solving this atotalof60000wasinvestedforoneyearpartofthis126655.html#p1035647: Question for you  I totally fell for the CTrap. How would I have know that this was a C trap vs. the investment question, which wasn't a C trap. They are worded almost identically?



Veritas Prep GMAT Instructor
Joined: 16 Oct 2010
Posts: 9788
Location: Pune, India

Re: Martha bought several pencils. If each pencil was either a
[#permalink]
Show Tags
18 Aug 2014, 03:17
russ9 wrote: Hi Bunuel, Interesting question. I landed on this after solving this atotalof60000wasinvestedforoneyearpartofthis126655.html#p1035647: Question for you  I totally fell for the CTrap. How would I have know that this was a C trap vs. the investment question, which wasn't a C trap. They are worded almost identically? Though the question is addressed to Bunuel, I would like to add my two cents here, hoping Bunuel will not mind! The question in this thread is based on the concept of "integral solutions of an equation in two variables". In these equations, it seems that you need more information, but actually you can often get a unique solution due to constraints on values that x and y can take. Such questions are often based on real life situations involving number of objects which cannot be a fraction. Hence the test maker does not need to specifically write that x and y must be non negative/positive integers but you need to logically assume it. Whenever you get such questions where you need to make an equation in two variables based on physical objects, you need to be alert of the possibility of CTraps. In the investment question, the amount invested/rate of interest needn't be integral and hence multiple values are possible. Obviously, there are many other questions where people could fall for CTrap but be aware of integral solutions questions. Here is a post on integral solutions: http://www.veritasprep.com/blog/2011/06 ... ofthumb/Look at question 2.
_________________
Karishma Veritas Prep GMAT Instructor
Learn more about how Veritas Prep can help you achieve a great GMAT score by checking out their GMAT Prep Options >



Intern
Joined: 24 Jan 2015
Posts: 3
Location: Singapore
Concentration: Finance, General Management
GPA: 3
WE: Pharmaceuticals (Consumer Products)

Re: Martha bought several pencils. If each pencil was either a
[#permalink]
Show Tags
26 May 2015, 08:48
I am approaching the problem from divisibility angle.
Since 23x+21y=130 and 130 is not divisible by 23 or 21. Martha can not only buy one type of pencil. Now, If she buys both I need to know how many of 23 and 21 number pencil she bought. i.e. 23+21 = 44 => 130/44 = 2*44 + 42. So she can buy 2 2 pencil of each number.
Now, reminder 42 is divisible by only 21 i.e. 21*2. so she bought additional two 21 number pencil.
Net we found the values that satisfies the conditions. the statement is sufficient  The answer is B.



Senior Manager
Status: Math is psychological
Joined: 07 Apr 2014
Posts: 402
Location: Netherlands
GMAT Date: 02112015
WE: Psychology and Counseling (Other)

Re: Martha bought several pencils. If each pencil was either a
[#permalink]
Show Tags
16 Jul 2015, 10:57
I am not sure if I am missing something, but it sounds a bit silly to just try out numbers. Of course it is logical that a combination could work, but having to look for it is not really reasonable  even if it is not hard.
Apart from this, I have a question. Let's say that it wasn't possible to find the needed combination for the equation in B. Could we use A and B together to figure it out?
So, [1] says that x+y = 6, so x = 6y and [2] says that 23x+24y = 130 and then replace x with 6y. Because in this way you indeed result in x=2 and y=4.
For this reason, I chose C, as it sounded more reasonable to use them in combination that to have to find a random combination or numbers. Any thoughts?



CEO
Joined: 20 Mar 2014
Posts: 2570
Concentration: Finance, Strategy
GPA: 3.7
WE: Engineering (Aerospace and Defense)

Martha bought several pencils. If each pencil was either a
[#permalink]
Show Tags
16 Jul 2015, 11:12
pacifist85 wrote: I am not sure if I am missing something, but it sounds a bit silly to just try out numbers. Of course it is logical that a combination could work, but having to look for it is not really reasonable  even if it is not hard.
Apart from this, I have a question. Let's say that it wasn't possible to find the needed combination for the equation in B. Could we use A and B together to figure it out?
So, [1] says that x+y = 6, so x = 6y and [2] says that 23x+24y = 130 and then replace x with 6y. Because in this way you indeed result in x=2 and y=4.
For this reason, I chose C, as it sounded more reasonable to use them in combination that to have to find a random combination or numbers. Any thoughts? As it is very obvious that C will give you 2 equations and 2 variables, it is thus called a "Ctrap" question in which people mark C without realising that 1 equation with 2 equations can be solved for both the variables as the additional condition will come from the fact that the number of pencils MUST be an integer. You can not have 0.3 or 1.5 or 3.7 pencils. Usually, you need 2 equations for uniquely obtaining values for 2 variables, but in some cases (such as the one above) 1 equation can provide you sufficient information on its own. As for your question, yes, if there were no integer values (you do not need to go on for hours to see how many values satisfy the given equation such that x, y are both integers.) then you could have used both the equations and come up with C as the correct answer as you have 2 equations and 2 variables. For the given question, 23x+24y = 130 > x = (130 24y) / (23) , the most you will have to check is for y = 0 to 5 as x MUST be \(\geq\)0 (24 X 6 = 144 > 130) and (13024y) should be a multiple of 23



Veritas Prep GMAT Instructor
Joined: 16 Oct 2010
Posts: 9788
Location: Pune, India

Re: Martha bought several pencils. If each pencil was either a
[#permalink]
Show Tags
16 Jul 2015, 20:43
pacifist85 wrote: I am not sure if I am missing something, but it sounds a bit silly to just try out numbers. Of course it is logical that a combination could work, but having to look for it is not really reasonable  even if it is not hard.
Apart from this, I have a question. Let's say that it wasn't possible to find the needed combination for the equation in B. Could we use A and B together to figure it out?
So, [1] says that x+y = 6, so x = 6y and [2] says that 23x+24y = 130 and then replace x with 6y. Because in this way you indeed result in x=2 and y=4.
For this reason, I chose C, as it sounded more reasonable to use them in combination that to have to find a random combination or numbers. Any thoughts? There is logic associated with this and you do not need to just try random numbers. That is why the answer here is not (C). The link that I have given in my post above discusses the logic.
_________________
Karishma Veritas Prep GMAT Instructor
Learn more about how Veritas Prep can help you achieve a great GMAT score by checking out their GMAT Prep Options >



GMAT Club Legend
Joined: 12 Sep 2015
Posts: 4063
Location: Canada

Re: Martha bought several pencils. If each pencil was either a
[#permalink]
Show Tags
08 Aug 2018, 09:54
Bull78 wrote: Martha bought several pencils. If each pencil was either a 23 cent pencil or a 21 pencil, how many 23 cent pencils did martha buy?
(1) Martha bought a total of 6 pencils
(2) The total value of the pencils Martha bought was 130 cents. Target question: How many 23 cent pencils did Martha buy? Given: Martha bought several pencils. Each pencil was either a 23cent pencil or a 21cent pencil. Statement 1: Martha bought a total of 6 pencils Clearly, statement 1 is NOT SUFFICIENT Statement 2: The total value of the pencils Martha bought was 130 cents.This statement APPEARS to be insufficient. However, since the pencils cost 21 cents and 23 cents, we can't buy many for 130 cents. So, let's LIST THE POSSIBLE CASES Case a: Martha bought ZERO 23cent pencils (for a total of 0 cents). This means she spent all 130 cents on the 21cent pencils. However, 21 cents does not evenly divide into 130 cents So, it cannot be the case that Martha bought ZERO 23cent pencils Case b: Martha bought ONE 23cent pencil. This means she spent the remaining 107 cents on the 21cent pencils. However, 21 cents DOES NOT evenly divide into 107 cents. So, it cannot be the case that Martha bought ONE 23cent pencil Case c: Martha bought TWO 23cent pencils (for a total of 46 cents). This means she spent the remaining 84 cents on the 21cent pencils. 21 cents divides into 84 cents exactly FOUR TIMES. So, it's possible that Martha bought TWO 23cent pencils and FOUR 21cent pencils In this case, the answer to the target question is Martha bought TWO 23cent pencilsCase d: Martha bought THREE 23cent pencils (for a total of 69 cents). This means she spent the remaining 61 cents on the 21cent pencils. However, 21 cents DOES NOT evenly divide into 61 cents. So, it cannot be the case that Martha bought THREE 23cent pencils Case e: Martha bought FOUR 23cent pencils (for a total of 92 cents). This means she spent the remaining 38 cents on the 21cent pencils. However, 21 cents DOES NOT evenly divide into 38 cents. So, it cannot be the case that Martha bought FOUR 23cent pencils Case f: Martha bought FIVE 23cent pencils (for a total of 15 cents). This means she spent the remaining 15 cents on the 21cent pencils. However, 21 cents DOES NOT evenly divide into 15 cents. So, it cannot be the case that Martha bought FIVE 23cent pencils Now that we've examined all of the cases, the only possible solution is the one described in case c So, it MUST be the case that Martha bought TWO 23cent pencilsSince we can answer the target question with certainty, statement 2 is SUFFICIENT Answer: B Cheers, Brent
_________________
Test confidently with gmatprepnow.com



NonHuman User
Joined: 09 Sep 2013
Posts: 13598

Re: Martha bought several pencils. If each pencil was either a
[#permalink]
Show Tags
31 Oct 2019, 11:52
Hello from the GMAT Club BumpBot! Thanks to another GMAT Club member, I have just discovered this valuable topic, yet it had no discussion for over a year. I am now bumping it up  doing my job. I think you may find it valuable (esp those replies with Kudos). Want to see all other topics I dig out? Follow me (click follow button on profile). You will receive a summary of all topics I bump in your profile area as well as via email.
_________________




Re: Martha bought several pencils. If each pencil was either a
[#permalink]
31 Oct 2019, 11:52






