Assuming you are talking about whole numbers...
6 * 1 = 6
6 * 2 = 12
6 * 3 = 18
6 * 4 = 24
6 * 5 = 30
24 and 30 are an equal amount away from 27, so 4 and 5 times 6 are the closest you can get to getting a product of 27.
To to be exact, 6 * 4.5 = 27.