Each side of a square courtyard is 17 yards long. It costs $28.73 per yard to replace the brick wall around the courtyard. How much would it cost to replace the brick wall?​