bradlynn33,
two things
1/
it seems that you are just showing the method of testing cases (as mentioned earlier in the thread) here.
it's somewhat hard for me to understand what's going on in your post -- mostly because the spacing, organization, etc. are sort of weird -- but it seems that you're just testing integer values of y and seeing whether you get an integer value of x.
if so, that's the same thing that's already suggested above.
if not, please explain, thanks.
2/
this is not how DS works:
bradlynn33 Wrote:we now put y= 2 in equation (A)
we get ; 21 x= 130-23(2)
21 x= 130-46
21x=84 ; x=4 . so we get the solution y= 2 and x=4 and therefore the answer (B).
here, you seem to be implying that you are finished
as soon as you get the pair (4, 2).
that's not how DS works. in fact, there will
always be at least one valid solution for each statement, so finding
one valid solution, in and of itself, doesn't mean anything.
the real issue in DS is whether you can find a second solution!so, here, after you find x = 4 and y = 2,
you still have to test the rest of the cases.you haven't actually established that the statement is sufficient until you get through all of the remaining cases
without finding an
additional solution.
point to note : in equation (A) when you have to substitute ; you substitute for y instead of x
the process is the same either way, so it doesn't really matter.
it's
ever so slightly more efficient to substitute for y, because there are fewer possibilities -- the upper limit is 130, so you only have to try y = 0/1/2/3/4/5, whereas you'd have to try x = 0/1/2/3/4/5/6.
but, realistically speaking, we're talking about a difference of, what, two or three seconds. so it doesn't matter at all which one you choose to substitute for.