It's "to make an apple pie from scratch".
You can make a sandwich with two slices of bread and whatever filling.