You want to convert a length or distance into an area.
Feet (or yards) measure LENGTH and square feet (or square yards) measure AREA.
Length can never be directly converted to an area. However, carpet and flooring installers use a formula based on the total of linear feet (length plus width) to compute the area required. This is because the material is in fixed widths and can only be installed in certain widths or directions.