The total number of apples delivered was 42 × 12 = <<42*12=504>>504.
There are 504 - 4 = <<504-4=500>>500 apples were left remaining.
Finally, there are 500 ÷ 10 = <<500/10=50>>50 boxes of apples.
#### 50