If the sum of 5, 8, 12 and 15 is equal to the sum of 3, 4, x and x+3, what is the value of x?