Let the number added to the fraction 18 be y
So, 1+y8+y = 12
cross multiply
8 + y = 2 + 2y
2y - y = 8 - 2
y = 6.