it doesn't work that way, exactly.
for this example since you are using a repeater, that means the MAX you'll get is 50% of 54mb/s, which is as you said = 27mb/s
lets say that the WiFi signal you have is 50% so in theory, you are now only able to get a maximum of 13.5mb/s
what is feeding the...