In total Thomas would train on 30 + 12 = <<30+12=42>>42 days.
Thomas trained 5 hours every day, which would bring us to 42 * 5 = <<42*5=210>>210 hours of training in total.
#### 210