Kara downloaded 384 selfies from her cell phone to her laptop. These selfies took up 768 megabytes of space on her laptop. Each selfie took up the same amount of space. How many megabytes do 40 selfies take up?

If 384 selfies took up 768 megabytes of space on her laptop, then 1 selfie takes up 768/384 = <<768/384=2>>2 megabytes of space.

Thus, 40 selfies take up 40*2 = <<40*2=80>>80 megabytes of space. Answer: \boxed{80}.