CREATE TABLE table_name_15 (number VARCHAR(255), builder VARCHAR(255), works_number VARCHAR(255))
With a works number of 40864 for the builder of Baldwin Locomotive Works, the number listed is?
    
SQL: SELECT number FROM table_name_15 WHERE builder = "baldwin locomotive works" AND works_number = 40864