Matt spent on math and science 30% + 40% = 70% of the time.
This means he did homework from these two subjects for 70/100 * 150 minutes = <<70/100*150=105>>105 minutes.
So Matt spent 150 minutes - 105 minutes = <<150-105=45>>45 minutes doing homework from other subjects.
#### 45