During one evening you spent 2/5 of your time working on math, 1/3 of your time working on history and 3/20 of your time working on French. The remaining 35 minutes was spent on English. How much time did you spend working on math?