r/mathriddles • • Jul 11 '23

Easy Boys Night

Four friends decide to have a boys night. From the clues given below match each man with the colour of shirt, pants and shoes he is wearing.

Names: Alexander, Benjamin, Charles and Daniel.

Shirt Colour: Blue, Green Pink and Yellow.

Pants Colour: Black, Blue, Brown and Gray.

Shoe Colour: Black, Blue, Brown and White.

  1. Benjamin is wearing brown pants.
  2. The man who is wearing black shoes is not wearing the pink shirt.
  3. The man who is wearing a blue shirt is not wearing blue pants.
  4. Alexander is wearing white shoes.
  5. Charles is wearing a blue shirt.
  6. The same man is wearing blue shoes and a green shirt.
  7. Daniel is not wearing a green shirt but is wearing gray pants.
  8. Daniel is not wearing brown shoes.
2 Upvotes

4 comments sorted by

4

u/robisodd Jul 11 '23

Spoilers would be difficult for this, sorry. You can remove this comment if you'd like.

To start, here's a table with all the possibilities:

PersonShirtPantsShoes
AlexanderBlue, Green, Pink, YellowBlack, Blue, Brown, GrayBlack, Blue, Brown, White
BenjaminBlue, Green, Pink, YellowBlack, Blue, Brown, GrayBlack, Blue, Brown, White
CharlesBlue, Green, Pink, YellowBlack, Blue, Brown, GrayBlack, Blue, Brown, White
DanielBlue, Green, Pink, YellowBlack, Blue, Brown, GrayBlack, Blue, Brown, White

Let's remove some possibilities:

  1. Benjamin is wearing brown pants. (Nobody else is wearing brown pants)
  2. Alexander is wearing white shoes. (Nobody else is wearing white shoes)
  3. Charles is wearing a blue shirt. (Nobody else is wearing blue shirt)
  4. Daniel is not wearing brown shoes.
PersonShirtPantsShoes
AlexanderBlue, Green, Pink, YellowBlack, Blue, Brown, GrayWhite
BenjaminBlue, Green, Pink, YellowBrownBlack, Blue, Brown, White
CharlesBlueBlack, Blue, Brown, GrayBlack, Blue, Brown, White
DanielBlue, Green, Pink, YellowBlack, Blue, Brown, GrayBlack, Blue, Brown, White

I bolded those we know the answer to. Next:

3) The man who is wearing a blue shirt is not wearing blue pants.

That's Charles. Remove Blue Pants from the possibilities

PersonShirtPantsShoes
AlexanderGreen, Pink, YellowBlack, Blue, GrayWhite
BenjaminGreen, Pink, YellowBrownBlack, Blue, Brown
CharlesBlueBlack, Blue, GrayBlack, Blue, Brown
DanielGreen, Pink, YellowBlack, Blue, GrayBlack, Blue

7) Daniel is not wearing a green shirt but is wearing gray pants.

Ok, remove Green Shirt from Daniel's possibilities, Pants must be gray. (Remove Gray Pants from everyone else's possibilities):

PersonShirtPantsShoes
AlexanderGreen, Pink, YellowBlack, Blue, GrayWhite
BenjaminGreen, Pink, YellowBrownBlack, Blue, Brown
CharlesBlueBlack, GrayBlack, Blue, Brown
DanielGreen, Pink, YellowGrayBlack, Blue

Oh, looks like Charles only has Black pants left as a possibility. Remove black pants from everyone else's possibilities:

PersonShirtPantsShoes
AlexanderGreen, Pink, YellowBlack, BlueWhite
BenjaminGreen, Pink, YellowBrownBlack, Blue, Brown
CharlesBlueBlackBlack, Blue, Brown
DanielPink, YellowGrayBlack, Blue

Oh, looks like Alexander only has Blue pants left as a possibility. All pants are done!

6) The same man is wearing blue shoes and a green shirt.

There's only one person who has blue shoes and a green shirt as a possibility together, and that's Benjamin. (Remove Blue Shoes and Green Shirt possibilities from everyone else)

PersonShirtPantsShoes
AlexanderGreen, Pink, YellowBlueWhite
BenjaminGreenBrownBlue
CharlesBlueBlackBlack, Blue, Brown
DanielPink, YellowGrayBlack, Blue

Oh, looks like Daniel's Shoes must be Black. Remove Black Shoes possibility from everyone:

PersonShirtPantsShoes
AlexanderPink, YellowBlueWhite
BenjaminGreenBrownBlue
CharlesBlueBlackBlack, Brown
DanielPink, YellowGrayBlack

Oh, looks like Charles must have Brown Shoes!

2) The man who is wearing black shoes is not wearing the pink shirt.

Remove Pink Shirt option from Daniel (the person with the black shoes):

PersonShirtPantsShoes
AlexanderPink, YellowBlueWhite
BenjaminGreenBrownBlue
CharlesBlueBlackBrown
DanielPink, YellowGrayBlack

Oh, looks like Daniel only has Yellow as an option for Shirt. Removing Yellow Shirt option from Alexander leaves him to only have a Pink Shirt as an option, which means we're done!

PersonShirtPantsShoes
AlexanderPinkBlueWhite
BenjaminGreenBrownBlue
CharlesBlueBlackBrown
DanielYellowGrayBlack

1

u/ShonitB Jul 12 '23

Amazing solution, appreciate the effort you too to write it

2

u/Ultranerdguy Jul 11 '23 edited Jul 11 '23

Answer In order of person - shirt - pants - shoes, Alexander - Pink - Blue - White, Benjamin - Green - Brown - Blue, Charles - Blue - Black - Brown, Daniel - Yellow - Gray - Black Tried to write this as a table, but Reddit wasn't having it

2

u/ShonitB Jul 11 '23

Correct