Sam finished his math assignment in 1/4 hours then he completed his English assignment in 2/5 hours. How many hours did Sam spent doing both assignments?