If the system of linear equations ⎩⎨⎧​x+x+x=12x+3x+6=23x+5x+ax=b​ is consistent and has an infinite number of solutions, then what is the value of a?