If one centimeter on the map represents 6 kilometers, then all you need to do to find out how far Adam's house is from Juan's is to multiply the distance between the two houses on the map in centimeters by the amount of kilometers that each centimeter on the map represents.
2 * 6 = 12
Which is our answer.
Adam's house is 12 kilometers from Juan's house.
Hope that helped! =)