Hot dogs come 10 to a package, and buns come 8 to a package. If an equal number of hot dogs and buns are wanted for a picnic, what is the minimum number of each that can be purchased?

A) 18
B) 36
C) 40
D) 60