Lily buys carpet for her bedroom and spends $400. Her bedroom is 8 feet by 10 feet. how much did the carpet cost per square foot?