Hey I have answered a similar question , where you can populate different tiles as per need, using a 2d matrix to hold the information. Its very basic but you can build on top of it , to suit your needs :)
Link:- Generate static 2D Tilemap from arrayGenerate static 2D Tilemap from array