CounterSniper
we have,
N1=N2=N3(1 ,2 , 3 representing each of the showrooms)
cars available
model A=19
model B=17
model C=15
The max number of cars of model A can only be minimum number of cars among model A,B,C as the number of cars should be same in each of the showrooms.
therefore N1=N2=N3=15
Hi,
although you have got the answer correct, the logic is not fully correct..
say model C had 12 cars , would you then say answer is 12 since "The max number of cars of model A can only be minimum number of cars among model A,B,C as the number of cars should be same in each of the showrooms."... ans is NO..the method is to find average, which will give you the number of cars in each showroom....
then two steps..
i) if the number of that model car is >average... subtract 2 from average(1 each for the remaining models of car as atleast 1 of each model is must)
ii) if the number of that model car is <average... subtract 2 from the number of car of that model...
if model C has 12 cars.
each of the showroom will have 16 cars.
no of cars of model A = (total cars which can be accomodated in a showroom -(min model B + min model C))