in Quantitative Aptitude retagged by
976 views
11 votes
11 votes

A town has $2017$ houses. Of these $2017$ houses, $1820$ have a dog, $1651$ have a cat, and $1182$ have a turtle. If $x$ is the largest possible number of houses that have a dog, a cat, and a turtle, and $y$ is the smallest possible number of houses that have a dog, a cat, and a turtle, then $x-y$ is ______.

  1. $1182$
  2. $638$
  3. $563$
  4. $619$
in Quantitative Aptitude retagged by
976 views

4 Comments

Getting value of x is much easier as maximum possible houses with all pets is totally depends on the least pet number .And here as turtles are the least with 1182 .so x =1182 but finding y is getting bit difficult.
0
0
2
2
good question
0
0

2 Answers

4 votes
4 votes

Let c represents cat, d represents dog, t represents turtle.

The largest possible number of house to have all three c,d,t would be to maximize the overlap which happens when houses having turtle will be a subset, i.e all three animals are present in those houses which have tuetles.

Therefore, x = 1182.

To calculate y, the minimal number of houses to have all three animals would be to minimize the overlap.

We can find the minimal number of house by assuming there are only two types of houses; one which has 2 types of animals (any one of ct / cd / dt) and another type of house in which all animals are present and then form linear equation and solve it;

ct + dt + cd + all = 2017 ; (cd / dt / ct represents the house which have only two types of animals in their house and all represents the number of house which has all three types of animals)  -eq 0

ct + dt + all = 1182 ( Number of houses with turtles)        -eq 1

cd + ct + all = 1651 (# houses with cats)                          -eq 2

cd + dt + all = 1820 (#houses with dogs)                         -eq 3

Solving the above the linear equations;

subtracting eq 1 from eq 0;

cd = 835

subtracting eq 3 from eq 0;

ct = 197

And from eq 2;

835 + 197 + all = 1651

all = 619 , which is equal to y

Hence, x-y = 1182 – 619 = 563

**************************************************

Also refer to article shared by Srken

https://math.stackexchange.com/questions/2389581/venn-diagram-question-involving-maximum-and-minimum-values

edited by

2 Comments

You didn’t take into consideration the Houses with only Dogs for eq-0
0
0
There will be no house with only dogs or even with only cats/ turtle, we have taken that assumption to find the minimal overlap
0
0
1 vote
1 vote

Here, X is 1182 and Y is 619. hence the final answer is X – Y = 563.

It is clear that 1182 is the max number of houses that can have dog, cat and turtle because this is the maximum overlap possible between the given 3 types of houses.

now, ill try to explain why 619 is the min number of houses that can have dogs and cats and turtles.

Given: total houses = 2017 ,

house with dogs(d) = 1820; house with no dogs(nd) = 2017-1820 = 197

house with cats( c) = 1651; house with no cats(nc) = 2017- 1651 = 366

house with turtles(t) = 1182; house with no turtles (nt) = 2017- 1182 = 835.

lets split house with dogs ( d ) into house with dogs & turtles (d & t) and house with dogs & no turtles (d & nt)

house with dogs & no turtles( d & nt) means those houses wont contain turtles, so ill take it to be 835 (nt).

now, lets split house with dogs & turtles (d & t) into house with dogs & turtles & cats (d & t & c) and house with dogs & turtles & no cats (d & t & nc)

house with dogs & turtles & no cats ( d & t & nc) means those houses wont contain cats, so ill take it 366 (nc).

intuitively what we are doing here is removing maximum chunks from what we have to get a final value as low as possible.

i have started to split from houses with dogs. you can also start splitting from house with cats or house with turtles. you will end up getting the same 619 as the answer.

Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true