Hearty bought a total of 3 + 5 = <<3+5=8>>8 packages.
Therefore, she has a total of 8 x 40 = <<8*40=320>>320 beads.
#### 320