A rectangular horse stall has a width of 12 feet and a perimeter of 52 feet. What is the length of the horse stall?
A) 13 feet
B) 14 feet
C) 28 feet
D) 40 feet