First you need the value of n and p. Get them by solving the following equations:

Mean: np = 6 .... (1)

Variance: np(1-p) = 2 .... (2)

Substitute the values of p and n into the moment generating function m(t), which is found here: Binomial distribution - Wikipedia, the free encyclopedia

.