The three terms x+12, 3x+5 and 2x+25 are the first three terms of an arithmetic progression. What is the value of x?