Findthe value of x when the arithmetic mean of x+12 and 4x+5 is 3x+2.