The total number of minutes he studies the three subjects is 60 + 80 + 40 = <<60+80+40=180>>180 minutes.
Therefore, Sam spends 180/60 = <<180/60=3>>3 hours.
#### 3