Kim made 40 cookies. She ate 1/4 of the cookies and then gave the rest to her six friends. If Kim gave each of her friends the same number of cookies, how many cookies did each friend get?

Kim ate 40 * 1/4 = <<40*1/4=10>>10 cookies.

Kim gave away 40 - 10 = <<40-10=30>>30 cookies.
Kim's six friends each got 30 / 6 = <<30/6=5>>5 cookies. Answer: \boxed{5}.

Each friend got 5 cookies.

Yes, that is correct. Each friend received 5 cookies.

To find out how many cookies each friend got, we need to first subtract the cookies Kim ate from the total number of cookies.

Kim ate 1/4 of the cookies, so she ate (1/4) * 40 = 10 cookies.

The number of cookies left after Kim ate is 40 - 10 = 30 cookies.

Since Kim gave the rest of the cookies to her six friends, we need to divide the number of cookies left by the number of friends.

Each friend got 30 cookies / 6 friends = 5 cookies.

Therefore, each friend got 5 cookies.