We are looking for something whose derivative is 6. But recall that

the derivative of 6x is 6.

In other words: An antiderivative of 6 is 6x.
In symbols:
6 dx=6x + C