sql server – Convert multiple rows into a single row sql

I want to change multiple rows into a single row based on Number and Type

            +------+---------+----------+-------+---------+-------+
            | Name | Address |   City   | State | Number  | Type  |
            +------+---------+----------+-------+---------+-------+
            | XYZ  | 123 Rd  | New York | NY    | 123D    | Code1 |
            | XYZ  | 123 Rd  | New York | NY    | 56A45   | Code2 |
            | XYZ  | 123 Rd  | New York | NY    | D45256  | Code3 |
            | XYZ  | 123 Rd  | New York | NY    | 345TT   | Code2 |
            | XYZ  | 123 Rd  | New York | NY    | 34561NN | Code2 |
            | XYZ  | 123 Rd  | New York | NY    | 84567YY | Code2 |
            +------+---------+----------+-------+---------+-------+

Result

            +------+---------+----------+-------+-------+-------+----------+-----------+----------+--------+
            | Name | Address |   City   | State | code1 | Code2 | code2_II | Code3_III | Code2_IV | Code3  |
            +------+---------+----------+-------+-------+-------+----------+-----------+----------+--------+
            | XYZ  | 123 Rd  | New York | NY    | 123D  | 56A45 | 345TT    | 34561NN   | 84567YY  | D45256 |
            +------+---------+----------+-------+-------+-------+----------+-----------+----------+--------+